From 7db47744f53d37da0c03bd6059d3204d6213a454 Mon Sep 17 00:00:00 2001 From: Moritz Heidkamp Date: Wed, 11 Oct 2023 18:01:49 +0200 Subject: [PATCH] buildGraalvmNativeImage: build with "-march=compatibility" by default This is necessary for compatibility with all targets supported by nixpkgs. --- pkgs/build-support/build-graalvm-native-image/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/build-graalvm-native-image/default.nix b/pkgs/build-support/build-graalvm-native-image/default.nix index 7212ffa40dcb..e25a71405089 100644 --- a/pkgs/build-support/build-graalvm-native-image/default.nix +++ b/pkgs/build-support/build-graalvm-native-image/default.nix @@ -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