aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/cpp/ios-gcc.qbs
diff options
context:
space:
mode:
authorFawzi Mohamed <fawzi.mohamed@digia.com>2013-06-11 15:25:52 +0200
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-06-13 14:19:18 +0200
commit833579104dc2fb5a1b5cc4d9659a25fbd2f5a639 (patch)
tree4b34d37801cc71945dbcfba3d25e815d56e07d36 /share/qbs/modules/cpp/ios-gcc.qbs
parent0998be310cdaa5658fde14106a22c0472d889500 (diff)
ios: use same compiler flags as xcode
Change-Id: I66c09b7420ce7bd2f9e08c764dd62ea19cd26a35 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'share/qbs/modules/cpp/ios-gcc.qbs')
-rw-r--r--share/qbs/modules/cpp/ios-gcc.qbs8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/ios-gcc.qbs b/share/qbs/modules/cpp/ios-gcc.qbs
index 6da57fccc..17bf9c677 100644
--- a/share/qbs/modules/cpp/ios-gcc.qbs
+++ b/share/qbs/modules/cpp/ios-gcc.qbs
@@ -10,6 +10,14 @@ DarwinGCC {
property string signingIdentity
property string provisionFile
property bool buildIpa: qbs.architecture.match("^arm") === "arm"
+ visibility: "hidden"
+ optimization: ((qbs.buildVariant === "debug" ) ? "none" :
+ (qbs.architecture.match("^arm") === "arm") ? "small" :
+ "fast")
+
+ platformCommonCompilerFlags: base.concat(["-fvisibility-inlines-hidden", "-g", "-gdwarf-2", "-fPIE"])
+ commonCompilerFlags: ["-fpascal-strings", "-fexceptions", "-fasm-blocks", "-fstrict-aliasing"]
+ linkerFlags: base.concat(["-dead_strip", "-headerpad_max_install_names"])
Rule {
multiplex: true