summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-04-15 21:00:11 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-04-15 21:00:11 (GMT)
commitbd8af5feb9b61f42c15cab77b19a58dfd93afa06 (patch)
treec25c3c3f26ab432d94666c2bbaf6c57c0e447fce /BuildTools/SCons/SConstruct
parent0f8fa2b135fb23076985e4f2289c29f5ef51e150 (diff)
downloadswift-bd8af5feb9b61f42c15cab77b19a58dfd93afa06.zip
swift-bd8af5feb9b61f42c15cab77b19a58dfd93afa06.tar.bz2
Fix for the previous fix.
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r--BuildTools/SCons/SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 5f4a984..136479a 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -100,7 +100,8 @@ if env["warnings"] :
else :
env.Append(CCFLAGS = ["-W", "-Wall"])
#env.Append(CCFLAGS = ["-W", "-Wall", "-Wredundant-decls", "-pedantic", "-Wno-long-long", "-Woverloaded-virtual", "-Wundef", "-Wfloat-equal", "-Wold-style-cast"])
- if env["CCVERSION"].split(".")[0] > 4 or onv["CCVERSION"].split(".")[1] >= 5 :
+ gccVersion = env["CCVERSION"].split(".")
+ if gccVersion >= ["4", "5", "0"] :
env.Append(CCFLAGS = ["-Wlogical-op"])
if env.get("coverage", 0) :