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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user