aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
authorBi11 <[email protected]>2016-08-10 15:36:14 +0800
committerBi11 <[email protected]>2016-08-10 15:36:14 +0800
commit7a297bbdfe6960aae39d1b634dfe6dd44b80432a (patch)
treeb4881781c860e69914ec3344b48be79bc5004e36 /src/build-data
parente8302e1330560d4831107985848375e9cbb39a51 (diff)
Fix x86 32-bit building for clang on Mac OS
Diffstat (limited to 'src/build-data')
-rw-r--r--src/build-data/cc/clang.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/build-data/cc/clang.txt b/src/build-data/cc/clang.txt
index df0f38f74..986eb6267 100644
--- a/src/build-data/cc/clang.txt
+++ b/src/build-data/cc/clang.txt
@@ -61,6 +61,7 @@ altivec -> "-maltivec"
</isa_flags>
<mach_opt>
+x86_32 -> "-march=SUBMODEL"
x86_64 -> "-march=SUBMODEL"
nehalem -> "-march=corei7"
sandybridge -> "-march=corei7-avx"
@@ -70,6 +71,7 @@ ivybridge -> "-march=core-avx-i"
<mach_abi_linking>
all -> "-pthread"
+x86_32 -> "-m32"
x86_64 -> "-m64"
ppc64 -> "-m64"