summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tobias.markmann@isode.com>2019-11-14 13:43:36 (GMT)
committerTobias Markmann <tobias.markmann@isode.com>2019-11-14 13:45:45 (GMT)
commit7a4d44dbc444b68b665535bb38847cfa48bfee3f (patch)
tree7732a8f43bdf46e07bf22623a8d5afe14c8f7e59 /BuildTools/SCons
parente53dc1593d1789ac33b132214e957e947843d451 (diff)
downloadswift-7a4d44dbc444b68b665535bb38847cfa48bfee3f.zip
swift-7a4d44dbc444b68b665535bb38847cfa48bfee3f.tar.bz2
Pass down SDKROOT environment variable
This is needed on macOS so that the running compiler knows what SDK to build against. Test-Information: Builds with system and custom build clang on macOS 10.14.6. Change-Id: I80a76937834d681c322bf36bfcb034565be9b2f5
Diffstat (limited to 'BuildTools/SCons')
-rw-r--r--BuildTools/SCons/SConscript.boot1
1 files changed, 1 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConscript.boot b/BuildTools/SCons/SConscript.boot
index 411fb7d..7b29c06 100644
--- a/BuildTools/SCons/SConscript.boot
+++ b/BuildTools/SCons/SConscript.boot
@@ -132,6 +132,7 @@ env_ENV = {
'PATH' : os.environ['PATH'],
'LD_LIBRARY_PATH' : os.environ.get("LD_LIBRARY_PATH", ""),
'TERM' : os.environ.get("TERM", ""),
+ 'SDKROOT' : os.environ.get("SDKROOT", ""),
}
if "MSVC_VERSION" in ARGUMENTS :