From fc1752a7c3e90ec7d604e9a148482c106672c27b Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 12 Jul 2015 17:49:43 -0400 Subject: fixes --- configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'configure') 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() -- cgit v1.2.3