Skip to content

Commit 5cd5792

Browse files
ddunbaraciidgh
authored andcommitted
[POSIX] Reexport TOOLCHAINS when building.
- This is very convenient when used with xcrun's indirection on OS X, it means you can do this: env TOOLCHAINS=swift Utilities/bootstrap and the build will automatically run against the latest toolchain (no PATH munging required). This depends a tiny bit on features from Xcode 7.3 beta, but once that GMs we should update the docs to make this the standard development-from-snapshot build instructions.
1 parent a84bc2c commit 5cd5792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/POSIX/system.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func posix_spawnp(path: String, args: [String], environment: [String: String] =
4949
let argv = args.map{ $0.withCString(strdup) }
5050
defer { for arg in argv { free(arg) } }
5151

52-
for key in ["PATH", "SDKROOT", "HOME", "SWIFT_EXEC",
52+
for key in ["PATH", "SDKROOT", "TOOLCHAINS", "HOME", "SWIFT_EXEC",
5353
// FIXME these
5454
"SPM_INSTALL_PATH", "SWIFT_BUILD_TOOL"] {
5555
environment[key] = POSIX.getenv(key)

0 commit comments

Comments
 (0)