summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-07-09 19:54:52 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-07-09 19:54:59 (GMT)
commit42fd41ae9b0a5e4472805dc34b49587b3b50b092 (patch)
treeb28a907a5a8eedb719b05f28ec5dcd6520e1bcf6 /BuildTools
parent51f4923d975af65b9f2f29b179f1e7768e8368d6 (diff)
downloadswift-42fd41ae9b0a5e4472805dc34b49587b3b50b092.zip
swift-42fd41ae9b0a5e4472805dc34b49587b3b50b092.tar.bz2
Detect release build.
Diffstat (limited to 'BuildTools')
-rw-r--r--BuildTools/SCons/SConstruct3
1 files changed, 3 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 42947eb..d752348 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -136,6 +136,9 @@ if env["optimize"] :
else :
env.Append(CCFLAGS = ["-O2"])
+if env["target"] == "xcode" and os.environ["CONFIGURATION"] == "Release" :
+ env.Append(CCFLAGS = ["-Os"])
+
if env["debug"] :
if env["PLATFORM"] == "win32" :
env.Append(CCFLAGS = ["/Zi", "/MDd"])