buildGraalvmNativeImage: build with "-march=compatibility" by default

This is necessary for compatibility with all targets supported by nixpkgs.
This commit is contained in:
Moritz Heidkamp 2023-10-11 18:01:49 +02:00
parent 9e2ee4c846
commit 7db47744f5

@ -13,6 +13,7 @@
, nativeImageBuildArgs ? [
(lib.optionalString stdenv.isDarwin "-H:-CheckToolchain")
"-H:Name=${executable}"
"-march=compatibility"
"--verbose"
]
# Extra arguments to be passed to the native-image