summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-01-25 18:36:25 +0100
committerSebastian Dröge <sebastian@centricular.com>2016-01-25 18:36:57 +0100
commiteb89dab5543fda0ddd4e46f8f35800bc4ef2224b (patch)
tree944039fcbdd87b978d186b4bde8914d5084afac1 /config
parent2508c14a1928d1e36cc8a2077f7f053ff410cf8e (diff)
ios: Don't use gas-preprocessor on i386 and x86-64
It only supports ARM and PPC.
Diffstat (limited to 'config')
-rw-r--r--config/ios.config3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/ios.config b/config/ios.config
index 678ca0e0..0d103440 100644
--- a/config/ios.config
+++ b/config/ios.config
@@ -99,7 +99,8 @@ os.environ['NM']= 'nm'
os.environ['NMEDIT']= 'nmedit'
os.environ['RANLIB']= 'ranlib'
os.environ['AS']= 'as'
-os.environ['GAS']= '%s %s' % ('gas-preprocessor.pl', os.environ['CC'])
+if not target_arch in [Architecture.X86, Architecture.X86_64]:
+ os.environ['GAS']= '%s %s' % ('gas-preprocessor.pl', os.environ['CC'])
if ios_platform == 'iPhoneOS':
os.environ['CFLAGS'] = '%s -isysroot %s -miphoneos-version-min=%s %s' %(arch_cflags, sysroot, min_version, extra_cflags)
os.environ['LDFLAGS'] = '%s -isysroot %s -miphoneos-version-min=%s -Wl,-iphoneos_version_min,%s -Wl,-undefined,error -Wl,-headerpad_max_install_names %s' %(arch_cflags, sysroot, min_version, min_version, extra_ldflags)