diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-07-12 19:55:08 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-07-12 21:06:48 (GMT) |
commit | d0171b0d632893e5574c8f7de2f7582efe18d65b (patch) | |
tree | 10cf497ae7870b3336c7291209ca2461d9c7af48 /BuildTools | |
parent | 0bdc7b1d043e681c18e2d0fffe1de20eab2ee0b3 (diff) | |
download | swift-d0171b0d632893e5574c8f7de2f7582efe18d65b.zip swift-d0171b0d632893e5574c8f7de2f7582efe18d65b.tar.bz2 |
Disable incremental link on Windows.
Diffstat (limited to 'BuildTools')
-rw-r--r-- | BuildTools/SCons/SConscript.boot | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/BuildTools/SCons/SConscript.boot b/BuildTools/SCons/SConscript.boot index 16c05c3..d6d4e29 100644 --- a/BuildTools/SCons/SConscript.boot +++ b/BuildTools/SCons/SConscript.boot @@ -127,10 +127,11 @@ else : # This isn't a real flag (yet) AFAIK. Be sure to append it to the CXXFLAGS # where you need it env["OBJCCFLAGS"] = [] + if env["optimize"] : if env["PLATFORM"] == "win32" : env.Append(CCFLAGS = ["/O2", "/GL"]) - env.Append(LINKFLAGS = ["/INCREMENTAL:NO", "/LTCG"]) + env.Append(LINKFLAGS = ["/LTCG"]) else : env.Append(CCFLAGS = ["-O2"]) @@ -210,7 +211,7 @@ if env.get("coverage", 0) : if env["PLATFORM"] == "win32" : env.Append(LIBS = ["user32", "crypt32", "dnsapi", "iphlpapi", "ws2_32", "wsock32", "Advapi32"]) env.Append(CCFLAGS = ["/EHsc", "/nologo"]) - # FIXME: We should find a decent solution for MSVS 10 + env.Append(LINKFLAGS = ["/INCREMENTAL:no"]) if int(env["MSVS_VERSION"].split(".")[0]) < 10 : env["LINKCOM"] = [env["LINKCOM"], 'mt.exe -nologo -manifest ${TARGET}.manifest -outputresource:$TARGET;1'] env["SHLINKCOM"] = [env["SHLINKCOM"], 'mt.exe -nologo -manifest ${TARGET}.manifest -outputresource:$TARGET;2'] |