mirror of
https://github.com/TinyCC/tinycc.git
synced 2026-02-05 05:11:37 +00:00
On Big Sur M1, force a x86_64 native build and count on Rosetta to make job as arm64 is not yet supported.
This commit is contained in:
9
configure
vendored
9
configure
vendored
@@ -60,6 +60,15 @@ case $targetos in
|
||||
cc=`readlink $cc || echo clang`
|
||||
tcc_usrinclude="`xcrun --show-sdk-path`/usr/include"
|
||||
DLLSUF=".dylib"
|
||||
case $cpu in
|
||||
arm64)
|
||||
# We cannot yet build a native arm64 version,
|
||||
# Use x86_64 and count on Rosetta to make the job.
|
||||
cpu=x86_64
|
||||
CFLAGS="$CFLAGS -arch $cpu"
|
||||
LDFLAGS="$LDFLAGS -arch $cpu"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
Windows_NT|MINGW*|MSYS*|CYGWIN*)
|
||||
mingw32=yes
|
||||
|
||||
Reference in New Issue
Block a user