summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-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"])