diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-12-13 11:35:55 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-12-22 14:25:42 (GMT) |
commit | fa500ac6870324e10ae90656c03a88666200634b (patch) | |
tree | 1490968b0085f234be5d0dcd7561e35c1406a790 | |
parent | d6bb5d79e3726d2aad82b52fe637030177b4950f (diff) | |
download | swift-fa500ac6870324e10ae90656c03a88666200634b.zip swift-fa500ac6870324e10ae90656c03a88666200634b.tar.bz2 |
Use /Zi instead of /Z7 for debugging symbols.
Change-Id: I60e34c2dd03bfa52949b7781a922959604d15bee
-rw-r--r-- | BuildTools/SCons/SConscript.boot | 2 | ||||
-rw-r--r-- | Documentation/SwiftenDevelopersGuide/Examples/EchoBot/SConscript | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/BuildTools/SCons/SConscript.boot b/BuildTools/SCons/SConscript.boot index acbe736..66811ad 100644 --- a/BuildTools/SCons/SConscript.boot +++ b/BuildTools/SCons/SConscript.boot @@ -149,7 +149,7 @@ if env["target"] == "xcode" and os.environ["CONFIGURATION"] == "Release" : if env["debug"] : if env["PLATFORM"] == "win32" : - env.Append(CCFLAGS = ["/Z7"]) + env.Append(CCFLAGS = ["/Zi"]) env.Append(LINKFLAGS = ["/DEBUG"]) if env["set_iterator_debug_level"] : env.Append(CPPDEFINES = ["_ITERATOR_DEBUG_LEVEL=0"]) diff --git a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/SConscript b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/SConscript index 84cc80b..aa9f691 100644 --- a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/SConscript +++ b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/SConscript @@ -7,11 +7,6 @@ example_env.UseFlags(example_env["SWIFTEN_DEP_FLAGS"]) # Precompile Swiften header # This is useful to slightly speed up compilation. if example_env["PLATFORM"] == "win32": - # Precompiled headers don't work with /Z7. We don't really need /Z7 here, so using - # the more standard /Zi. - if example_env["debug"] : - example_env.Replace(CCFLAGS = [flag for flag in env["CCFLAGS"] if flag != "/Z7"]) - example_env.Append(CCFLAGS = "/Zi") example_env.WriteVal("Swiften.cpp", example_env.Value("#include <Swiften/Swiften.h>\n")) example_env["PCH"] = example_env.PCH("Swiften.cpp")[0] example_env["PCHSTOP"] = "Swiften/Swiften.h" |