summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-08-10 20:33:59 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-08-10 20:33:59 (GMT)
commit44d66c87401b38b2be0ca7875d9c72c222cd268f (patch)
treeb2a0e5a891a476f310accdd51595e08adc34cdab
parent7459eb89d67db4d1245603b3c7cde1140a999474 (diff)
downloadswift-44d66c87401b38b2be0ca7875d9c72c222cd268f.zip
swift-44d66c87401b38b2be0ca7875d9c72c222cd268f.tar.bz2
Remove MSVC warn flags by default.
-rw-r--r--SConstruct4
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 541f2a8..87a2f4c 100644
--- a/SConstruct
+++ b/SConstruct
@@ -31,8 +31,8 @@ if int(ARGUMENTS.get("universal", 0)) == 1 :
"-arch", "i386",
"-arch", "ppc"])
-if int(ARGUMENTS.get("warnings", 1)) == 1 :
- if env["PLATFORM"] == "win32" :
+if int(ARGUMENTS.get("warnings", env["PLATFORM"] != "win32")) == 1 :
+ if env["PLATFORM"] != "win32" :
env.Append(CCFLAGS = ["/Wall"])
else :
env.Append(CCFLAGS = ["-W", "-Wall"])