aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorcomex2015-07-12 17:49:43 -0400
committercomex2015-07-12 17:49:43 -0400
commitfc1752a7c3e90ec7d604e9a148482c106672c27b (patch)
tree2ef55bf39cc01ef7893fb650189fbdb4a0de0026 /configure
parentredo crash reporting - untested (but it compiles) (diff)
downloadsubstitute-fc1752a7c3e90ec7d604e9a148482c106672c27b.tar.gz
fixes
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index 5026f50..8c0fbf7 100755
--- a/configure
+++ b/configure
@@ -56,8 +56,12 @@ if settings.enable_werror:
for mach in machs + [settings.host_machine()]:
settings[mach.name].cflags = ['-Werror'] + settings[mach.name].cflags
+# XXX this is a mess and wrong
+flags = ['-O3']
+if settings.host_machine().is_cross():
+ flags.append('-miphoneos-version-min=8.0')
for i in ('cflags', 'ldflags'):
- settings.host[i] = ['-miphoneos-version-min=8.0', '-O3'] + settings.host[i]
+ settings.host[i] = flags + settings.host[i]
# todo make overridable?
cc_argv = c.cc.argv()