From 42fd41ae9b0a5e4472805dc34b49587b3b50b092 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sat, 9 Jul 2011 21:54:52 +0200
Subject: Detect release build.


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"])
-- 
cgit v0.10.2-6-g49f6