Add a compile-time pre-check before the runtime feature test in check_arm_feature. Before running a test binary with -mcpu=native+<tag>, first check if -mcpu=native (without the forced +tag) defines the compiler's __ARM_FEATURE_* macro. If the compiler doesn't think the native CPU has the feature, skip the runtime test entirely. This prevents hangs on platforms where the compiler can compile the feature code (via forced +tag) but the binary traps at an OS level without delivering SIGILL to userspace — as happens on macOS/Apple Silicon with SVE instructions. When the compiler does report native support, the runtime test still runs as before to verify actual hardware capability. |
||
|---|---|---|
| .. | ||
| cmake | ||
| include | ||
| src | ||
| .gitignore | ||
| CMakeLists.txt | ||