summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-08-20 17:10:48 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-08-20 17:11:07 (GMT)
commit5fa4903a7c1c7a7733afdd1d6c4c5dcccec97b19 (patch)
tree1a2a298b361bd71a255b244fce826671ee5c04c6 /BuildTools/SCons/SConstruct
parent6272731f996ce48ed405bb5eb1b53ebfdbeea08a (diff)
downloadswift-contrib-5fa4903a7c1c7a7733afdd1d6c4c5dcccec97b19.zip
swift-contrib-5fa4903a7c1c7a7733afdd1d6c4c5dcccec97b19.tar.bz2
Fix Slimber build.
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r--BuildTools/SCons/SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index abe8860..c4f6c88 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -70,6 +70,9 @@ if env["max_jobs"] :
# Default compiler flags
env["CCFLAGS"] = env.get("ccflags", [])
env["LINKFLAGS"] = env.get("linkflags", [])
+# This isn't a real flag (yet) AFAIK. Be sure to append it to the CXXFLAGS
+# where you need it
+env["OBJCCFLAGS"] = []
if env["optimize"] :
env.Append(CCFLAGS = "-O2")
if env["PLATFORM"] == "win32" :
@@ -174,6 +177,7 @@ if target in ["iphone-device", "iphone-simulator", "xcode"] :
# Set the build flags
env["CC"] = "$XCODE_PLATFORM_DEVELOPER_BIN_DIR/gcc"
env["CXX"] = "$XCODE_PLATFORM_DEVELOPER_BIN_DIR/g++"
+ env["OBJCCFLAGS"] = ["-fobjc-abi-version=2", "-fobjc-legacy-dispatch"]
env["LD"] = env["CC"]
env.Append(CCFLAGS = env["XCODE_ARCH_FLAGS"])
env.Append(LINKFLAGS = env["XCODE_ARCH_FLAGS"])