only use musl on x86_64

Since that's all I've tested it on. Apparently this caused issues on
aarch64 even though it allegedly shouldn't.
This commit is contained in:
Charles Hall 2023-07-10 11:03:20 -07:00
parent ad06d475de
commit 56f0f3dfa4
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -25,8 +25,8 @@
let
pkgs = nixpkgs.legacyPackages.${system};
# Use mold on Linux
stdenv = if pkgs.stdenv.isLinux then
# Use mold where possible
stdenv = if pkgs.stdenv.isLinux && pkgs.stdenv.isx86_64 then
pkgs.stdenvAdapters.useMoldLinker pkgs.stdenv
else
pkgs.stdenv;