1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-19 08:57:39 +03:00

Do not run tests under qemu-i386 on i686 native host

Fixes https://github.com/rui314/mold/issues/1140
This commit is contained in:
Rui Ueyama 2023-11-06 12:44:01 +09:00
parent 9d91a2bc23
commit e11d64b5c7

View File

@ -52,7 +52,12 @@ else
OBJDUMP="$TRIPLE-objdump"
OBJCOPY="$TRIPLE-objcopy"
STRIP="$TRIPLE-strip"
QEMU="qemu-$MACHINE -L /usr/$TRIPLE"
if [ $MACHINE = i686 ]; then
QEMU="qemu-i386 -L /usr/$TRIPLE"
else
QEMU="qemu-$MACHINE -L /usr/$TRIPLE"
fi
fi
if [ $MACHINE = x86_64 -o $MACHINE = i686 -o $MACHINE = arm ]; then
@ -61,10 +66,6 @@ elif [ $MACHINE = aarch64 ]; then
tlsdesc_opt=-mtls-dialect=desc
fi
if [ $MACHINE = i686 ]; then
QEMU="qemu-i386 -L /usr/$TRIPLE"
fi
if [ $MACHINE = ppc64le -a -e /proc/cpuinfo ] && grep -q POWER10 /proc/cpuinfo; then
CC="$CC -mcpu=power10"
CXX="$CXX -mcpu=power10"