From c9c9419396e297cd64ae8d5856979c724746110c Mon Sep 17 00:00:00 2001 From: Julius Michaelis Date: Thu, 10 Oct 2024 10:56:05 +0900 Subject: [PATCH] rustc: wasi32: disable expecting self-contained linker, the nixpkgs derivation does not supply one --- pkgs/development/compilers/rust/rustc.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index 5af924d4bda06..ff997e0b0a49b 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/pkgs/development/compilers/rust/rustc.nix @@ -222,6 +222,10 @@ in stdenv.mkDerivation (finalAttrs: { substituteInPlace compiler/rustc_target/src/spec/*/*.rs \ --replace-quiet '"rust-lld"' '"lld"' + # Figuring out when this should be False is a rustc FIXME. Nixpkgs needs it false. + substituteInPlace compiler/rustc_target/src/spec/targets/wasm32_wasi*.rs \ + --replace LinkSelfContainedDefault::True LinkSelfContainedDefault::False + ${optionalString (!withBundledLLVM) "rm -rf src/llvm"} # Useful debugging parameter