summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThilo Cestonaro <thilo@cestona.ro>2011-08-25 12:47:52 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-08-27 17:35:30 (GMT)
commit6d74e548e9e748007f6541dbcb0ed148e572332e (patch)
treed1873b067d8fafe85fac002493220ed3e86cca94 /BuildTools/SCons/SConstruct
parent7f931ab66d8294a20267f1008540532828ab0d20 (diff)
downloadswift-6d74e548e9e748007f6541dbcb0ed148e572332e.zip
swift-6d74e548e9e748007f6541dbcb0ed148e572332e.tar.bz2
fix compilation on ubuntu 11.10 (e.g. for gcc 4.6)
License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r--BuildTools/SCons/SConstruct4
1 files changed, 2 insertions, 2 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index cc052ca..88a195a 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -203,7 +203,7 @@ if env["PLATFORM"] != "win32" and env["PLATFORM"] != "darwin" :
"LIBS": gconf_bare_env["LIBS"],
"CCFLAGS": gconf_bare_env["CCFLAGS"],
"CPPPATH": gconf_bare_env["CPPPATH"],
- "CPPDEFINES": gconf_bare_env["CPPDEFINES"],
+ "CPPDEFINES": gconf_bare_env.get("CPPDEFINES", []),
}
gconf_env.MergeFlags(gconf_flags)
if conf.CheckCHeader("gconf/gconf-client.h") and conf.CheckLib("gconf-2") :
@@ -212,7 +212,7 @@ if env["PLATFORM"] != "win32" and env["PLATFORM"] != "darwin" :
"LIBS": gconf_env["LIBS"],
"CCFLAGS": gconf_env["CCFLAGS"],
"CPPPATH": gconf_env["CPPPATH"],
- "CPPDEFINES": gconf_env["CPPDEFINES"],
+ "CPPDEFINES": gconf_env.get("CPPDEFINES", []),
}
conf.Finish()