summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2018-10-01 10:20:42 (GMT)
committerTobias Markmann <tm@ayena.de>2018-10-01 14:38:18 (GMT)
commitd0836aeb02594c322a9915041e4fe46077a91b7b (patch)
tree9f9a388e66a22d8630fb7a6c5ebcc354ca33a34c /BuildTools/SCons
parentd2f67c83aa40f2a273f17c13c6c3ea94f7f73c25 (diff)
downloadswift-d0836aeb02594c322a9915041e4fe46077a91b7b.zip
swift-d0836aeb02594c322a9915041e4fe46077a91b7b.tar.bz2
Pass /bigobj when building on Windows
Debug builds building with /MDd will otherwise fail on Windows with MSVS 2015. Test-Information: Builds successfully with /MDd flag on Windows using MSVS 2015. Change-Id: I9ac7e9408f09354025bb39cb5642efce686d11f0
Diffstat (limited to 'BuildTools/SCons')
-rw-r--r--BuildTools/SCons/SConscript.boot2
1 files changed, 2 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConscript.boot b/BuildTools/SCons/SConscript.boot
index 80831a1..411fb7d 100644
--- a/BuildTools/SCons/SConscript.boot
+++ b/BuildTools/SCons/SConscript.boot
@@ -282,6 +282,8 @@ if env["debug"] :
if env["PLATFORM"] == "win32" :
env.AppendUnique(CCFLAGS = ["/{}".format(env.get("msvc_runtime"))])
+ # debug builds against debug MSVC runtime can cause some more sections in the object file
+ env.AppendUnique(CCFLAGS = ["/bigobj"])
if env.get("universal", 0) :
assert(env["PLATFORM"] == "darwin")