aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/cpp/ios-gcc.qbs
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2014-08-18 20:37:44 -0400
committerJoerg Bornemann <joerg.bornemann@digia.com>2014-08-21 12:45:37 +0200
commit202e783bc5a855517a72f0c3f931e6388c735711 (patch)
tree1ce3b0ba48ad737f559615b106dda614a2b63013 /share/qbs/modules/cpp/ios-gcc.qbs
parent38dff256974a893d34e8607b2954cad45fd55953 (diff)
Remove strange default flags from iOS cpp module.
- visibility should not be hidden by default; this breaks shared libs. - optimization, -dead_strip should not be platform specific. - -g, -fPIE, -headerpad_max_install_names are already handled elsewhere. - -fstrict-aliasing, -gdwarf-2 are already compiler defaults (redundant). - -fexceptions has a task for a dedicated property (bad place anyways). - -fpascal-strings, -fasm-blocks, user can set these if they want 'em. Change-Id: I856d43f3d3539d0a0569c347615ef59dfc2f20f1 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com> 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.qbs11
1 files changed, 0 insertions, 11 deletions
diff --git a/share/qbs/modules/cpp/ios-gcc.qbs b/share/qbs/modules/cpp/ios-gcc.qbs
index dced87c27..1c38c0052 100644
--- a/share/qbs/modules/cpp/ios-gcc.qbs
+++ b/share/qbs/modules/cpp/ios-gcc.qbs
@@ -7,17 +7,6 @@ import qbs.ModUtils
DarwinGCC {
condition: qbs.hostOS.contains('osx') && qbs.targetOS.contains('ios') && qbs.toolchain.contains('gcc')
- visibility: "hidden"
- optimization: {
- if (qbs.buildVariant === "debug")
- return "none";
- return qbs.targetOS.contains('ios-simulator') ? "fast" : "small"
- }
-
- 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 {
condition: !product.moduleProperty("qbs", "targetOS").contains("ios-simulator")
multiplex: true