Skip to content

Commit 2de85ca

Browse files
committed
limit arm8.5 on musllinux
1 parent 0465126 commit 2de85ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/build_steps.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ function do_build_lib {
139139
Linux-aarch64)
140140
local bitness=64
141141
local target_flags="TARGET=ARMV8"
142-
export CFLAGS="$CFLAGS -march=armv8.6-a+sve"
142+
if [ "$MB_ML_LIBC" == "musllinux" ]; then
143+
export CFLAGS="$CFLAGS -march=armv8.5-a+sve"
144+
else
145+
export CFLAGS="$CFLAGS -march=armv8.6-a+sve"
146+
fi
143147
;;
144148
Darwin-arm64)
145149
local bitness=64

0 commit comments

Comments
 (0)