Unified · Split
| @@ -60,6 +60,15 @@ case $targetos in · 59 unmodified lines | |||
| 60 | cc=`readlink $cc || echo clang` | 60 | cc=`readlink $cc || echo clang` |
| 61 | tcc_usrinclude="`xcrun --show-sdk-path`/usr/include" | 61 | tcc_usrinclude="`xcrun --show-sdk-path`/usr/include" |
| 62 | DLLSUF=".dylib" | 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 | Windows_NT|MINGW*|MSYS*|CYGWIN*) | 73 | Windows_NT|MINGW*|MSYS*|CYGWIN*) |
| 65 | mingw32=yes | 74 | mingw32=yes |