buildGraalvm: remove unset vars

This patch removes remaining uses of unset bash var $extraNativeImageArgs
which commit bc1bc1aa3 forgot to remove when deleting the var.
This commit is contained in:
Rowenna Emma
2025-11-10 20:52:47 -08:00
parent 8dd99ea3e7
commit 483a5e7a0e
@@ -224,7 +224,7 @@ let
# -H:+StaticExecutableWithDynamicLibC is only available in Linux
lib.optionalString (stdenv.hostPlatform.isLinux && !useMusl) ''
echo "Ahead-Of-Time compilation with -H:+StaticExecutableWithDynamicLibC"
$out/bin/native-image -H:+UnlockExperimentalVMOptions -H:+StaticExecutableWithDynamicLibC -march=compatibility $extraNativeImageArgs HelloWorld
$out/bin/native-image -H:+UnlockExperimentalVMOptions -H:+StaticExecutableWithDynamicLibC -march=compatibility HelloWorld
./helloworld | fgrep 'Hello World'
''
}
@@ -233,7 +233,7 @@ let
# --static is only available in x86_64 Linux
lib.optionalString (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64 && useMusl) ''
echo "Ahead-Of-Time compilation with --static and --libc=musl"
$out/bin/native-image $extraNativeImageArgs -march=compatibility --libc=musl --static HelloWorld
$out/bin/native-image -march=compatibility --libc=musl --static HelloWorld
./helloworld | fgrep 'Hello World'
''
}