diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-07-09 19:54:52 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-07-09 19:54:59 (GMT) |
commit | 42fd41ae9b0a5e4472805dc34b49587b3b50b092 (patch) | |
tree | b28a907a5a8eedb719b05f28ec5dcd6520e1bcf6 /BuildTools/SCons/SConstruct | |
parent | 51f4923d975af65b9f2f29b179f1e7768e8368d6 (diff) | |
download | swift-42fd41ae9b0a5e4472805dc34b49587b3b50b092.zip swift-42fd41ae9b0a5e4472805dc34b49587b3b50b092.tar.bz2 |
Detect release build.
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r-- | BuildTools/SCons/SConstruct | 3 |
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"]) |