diff options
author | Tobias Markmann <tm@ayena.de> | 2016-08-10 13:09:46 (GMT) |
---|---|---|
committer | Kevin Smith <kevin.smith@isode.com> | 2016-08-23 08:14:09 (GMT) |
commit | b429450dc59c4ee4011b6b10a0af535a9003bb2e (patch) | |
tree | 5d7420c335973eb795ae07ea6f98cc96ee853d58 /BuildTools/SCons | |
parent | ff6034574d984f2d201c033efc00faeae055691e (diff) | |
download | swift-b429450dc59c4ee4011b6b10a0af535a9003bb2e.zip swift-b429450dc59c4ee4011b6b10a0af535a9003bb2e.tar.bz2 |
Do not require debug MSVC runtime for non optimized builds
This allows building Swift with debug symbols and the
non-debug MSVC dynamic runtime.
Test-Information:
scons debug=1 optimize=0 and ./scons debug=1 optimize=1
both build and Swift runs in both configurations on
Windows 8 with VS 2013.
Change-Id: I47d75916963c4e64732c547bc7dfb322096d6189
Diffstat (limited to 'BuildTools/SCons')
-rw-r--r-- | BuildTools/SCons/SConscript.boot | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/BuildTools/SCons/SConscript.boot b/BuildTools/SCons/SConscript.boot index 597690d..8379a58 100644 --- a/BuildTools/SCons/SConscript.boot +++ b/BuildTools/SCons/SConscript.boot @@ -248,11 +248,8 @@ if env["debug"] : env["PDB"] = '${TARGET.base}.pdb' if env["set_iterator_debug_level"] : env.Append(CPPDEFINES = ["_ITERATOR_DEBUG_LEVEL=0"]) - if env["optimize"] : - env.Append(LINKFLAGS = ["/OPT:NOREF"]) - env.Append(CCFLAGS = ["/MD"]) - else : - env.Append(CCFLAGS = ["/MDd"]) + env.Append(LINKFLAGS = ["/OPT:NOREF"]) + env.Append(CCFLAGS = ["/MD"]) else : env.Append(CCFLAGS = ["-g"]) elif env["PLATFORM"] == "win32" : |