mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-27 13:57:52 +00:00
tsan: add ability to compile for different Go subarch values.
Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D131927
This commit is contained in:
parent
b0e515c9a0
commit
f202662ec3
@ -59,9 +59,11 @@ if [ "`uname -a | grep Linux`" != "" ]; then
|
||||
ARCHCFLAGS="-m64 -mcpu=power8 -fno-function-sections"
|
||||
elif [ "`uname -a | grep x86_64`" != "" ]; then
|
||||
SUFFIX="linux_amd64"
|
||||
# -msse3 used below to ensure continued support of older
|
||||
# cpus for now, see https://github.com/golang/go/issues/53743.
|
||||
ARCHCFLAGS="-m64 -msse3"
|
||||
if [ $GOAMD64 == "v3" ]; then
|
||||
ARCHCFLAGS="-m64 -msse4.2"
|
||||
else
|
||||
ARCHCFLAGS="-m64 -msse3"
|
||||
fi
|
||||
OSCFLAGS="$OSCFLAGS -ffreestanding -Wno-unused-const-variable -Wno-unknown-warning-option"
|
||||
elif [ "`uname -a | grep aarch64`" != "" ]; then
|
||||
SUFFIX="linux_arm64"
|
||||
|
Loading…
x
Reference in New Issue
Block a user