mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2026-01-14 05:16:40 +00:00
Apple reserves CPU register x18 for TLS on ARM64. When generating AOT code for aarch64 on macOS, LLVM may use x18, causing crashes when the AOT code runs on macOS ARM64 (M1/M2/M3). This patch: 1. Detects darwin/macho ABI and sets correct vendor string 2. Detects darwin/apple in default triple for platform detection 3. Adds +reserve-x18 to LLVM target features for aarch64 on macOS The fix only applies when compiling on macOS ARM64 hosts, ensuring generated AOT code is compatible with Apple's platform requirements. |
||
|---|---|---|
| .. | ||
| deps | ||
| iwasm | ||
| shared | ||
| config.h | ||
| version.h | ||
| version.h.in | ||