fix(native): add -march=compatibility for broader CPU support

Windows binary was crashing with STATUS_ILLEGAL_INSTRUCTION on x64
emulated environments (like Parallels on ARM Macs). GraalVM native-image
by default uses CPU features detected at build time.

Adding -march=compatibility ensures the binary uses only baseline
x86-64 instructions that work across all x64 CPUs and emulators.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Daniel SamsonandClaude Opus 4.5 committed 2026-01-22 00:10:28 +00:00
1 parent 116f1fbb59
commit 461ebe44ab
1 file changed
+1
+1
View File
@@ -393,6 +393,7 @@
<buildArg>--no-fallback</buildArg>
<buildArg>-H:+ReportExceptionStackTraces</buildArg>
<buildArg>--enable-url-protocols=https</buildArg>
<buildArg>-march=compatibility</buildArg>
</buildArgs>
</configuration>
</plugin>