提交 ab13f1a2 编辑于 作者: Christian Jullien's avatar Christian Jullien
浏览文件

On Big Sur M1, force a x86_64 native build and count on Rosetta to make job as...

On Big Sur M1, force a x86_64 native build and count on Rosetta to make job as arm64 is not yet supported.
上级 6e76d894
......@@ -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
......
Supports Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册