Skip to content

Commit 5962b4e

Browse files
committed
fix: use the same -march setting as gcc on i686
1 parent 350a144 commit 5962b4e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/install-static-clang.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ case "${AUDITWHEEL_POLICY}-${AUDITWHEEL_ARCH}" in
4848
manylinux*-*) TARGET_TRIPLE=${AUDITWHEEL_ARCH}-unknown-linux-gnu;;
4949
musllinux*-*) TARGET_TRIPLE=${AUDITWHEEL_ARCH}-alpine-linux-musl;;
5050
esac
51-
case "${AUDITWHEEL_ARCH}" in
52-
riscv64) M_ARCH="-march=rv64gc";;
53-
x86_64) M_ARCH="-march=x86-64";;
54-
armv7l) M_ARCH="-march=armv7a";;
55-
i686) M_ARCH="-march=i686";;
51+
case "${AUDITWHEEL_POLICY}-${AUDITWHEEL_ARCH}" in
52+
*-riscv64) M_ARCH="-march=rv64gc";;
53+
*-x86_64) M_ARCH="-march=x86-64";;
54+
*-armv7l) M_ARCH="-march=armv7a";;
55+
manylinux*-i686) M_ARCH="-march=k8 -mtune=generic";; # same as gcc manylinux2014 / manylinux_2_28
56+
musllinux*-i686) M_ARCH="-march=pentium-m -mtune=generic";; # same as gcc musllinux_1_2
5657
esac
5758
GCC_TRIPLE=$(gcc -dumpmachine)
5859

0 commit comments

Comments
 (0)