graalvm-ce-musl: only test --static on x86_64-linux

--libc=musl --static is not support by GraalVM native-image on aarch64
so add conditional to only test this option on x86_64
This commit is contained in:
Sean Gilligan
2025-09-18 12:10:28 -07:00
parent 7d0addafb0
commit 94b261c3fb
@@ -230,8 +230,8 @@ let
}
${
# --static is only available in Linux
lib.optionalString (stdenv.hostPlatform.isLinux && useMusl) ''
# --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
./helloworld | fgrep 'Hello World'