Commit 656aca0
committed
Add macOS aarch64 (Apple Silicon) build support
- Add __aarch64__ and __arm__ cases to the macOS architecture block in
q_platform.h (the existing aarch64 support was only in the Linux block)
- Normalize arm/arm64 to aarch64 in the Makefile since uname -p returns
'arm' on Apple Silicon
- Only set HAVE_VM_COMPILED on architectures that have a bytecode
compiler (x86, x86_64, ppc, ppc64) so aarch64 falls back to the
interpreter
- Add -arch arm64 optimization flag for darwin/aarch641 parent e8f5ed1 commit 656aca0
2 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
| |||
458 | 465 | | |
459 | 466 | | |
460 | 467 | | |
461 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
462 | 471 | | |
463 | 472 | | |
464 | 473 | | |
| |||
482 | 491 | | |
483 | 492 | | |
484 | 493 | | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
485 | 497 | | |
486 | 498 | | |
487 | 499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
164 | 170 | | |
165 | 171 | | |
166 | 172 | | |
| |||
0 commit comments