Unified · Split
| @@ -60,6 +60,15 @@ case $targetos in · 59 unmodified lines | ||
| 60 | 60 | cc=`readlink $cc || echo clang` |
| 61 | 61 | tcc_usrinclude="`xcrun --show-sdk-path`/usr/include" |
| 62 | 62 | DLLSUF=".dylib" |
| 63 | + case $cpu in | |
| 64 | + arm64) | |
| 65 | + # We cannot yet build a native arm64 version, | |
| 66 | + # Use x86_64 and count on Rosetta to make the job. | |
| 67 | + cpu=x86_64 | |
| 68 | + CFLAGS="$CFLAGS -arch $cpu" | |
| 69 | + LDFLAGS="$LDFLAGS -arch $cpu" | |
| 70 | + ;; | |
| 71 | + esac | |
| 63 | 72 | ;; |
| 64 | 73 | Windows_NT|MINGW*|MSYS*|CYGWIN*) |
| 65 | 74 | mingw32=yes |