Skip to content

Commit 0d07bc7

Browse files
authored
Merge pull request swiftlang#22 from rintaro/buildscript-xctests-environ
[build-script] Don't mutate os.environ in run_xctests()
2 parents 5d058eb + 3a83e02 commit 0d07bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def run_xctests(swift_test_exec, build_dir, release, swiftc_exec, verbose):
276276
if verbose:
277277
swiftpm_call.extend(['--verbose'])
278278

279-
subenv = os.environ
279+
subenv = dict(os.environ)
280280
if swiftc_exec:
281281
# Add the swiftc exec to PATH so that SwiftSyntax finds it
282282
subenv['PATH'] = realpath(swiftc_exec + '/..') + ':' + subenv['PATH']

0 commit comments

Comments
 (0)