From 94b261c3fbdc9d25de1d27ecaa786983d1f3de19 Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Thu, 18 Sep 2025 11:51:17 -0700 Subject: [PATCH] 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 --- .../compilers/graalvm/community-edition/buildGraalvm.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/graalvm/community-edition/buildGraalvm.nix b/pkgs/development/compilers/graalvm/community-edition/buildGraalvm.nix index 6b267ce0ca3d..db97c1e3f54c 100644 --- a/pkgs/development/compilers/graalvm/community-edition/buildGraalvm.nix +++ b/pkgs/development/compilers/graalvm/community-edition/buildGraalvm.nix @@ -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'