Skip to content

Commit

Permalink
rustc: wasi32: disable expecting self-contained linker, the nixpkgs d…
Browse files Browse the repository at this point in the history
…erivation does not supply one
  • Loading branch information
jcaesar committed Oct 10, 2024
1 parent 3e0b90d commit c9c9419
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/compilers/rust/rustc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9c9419

Please sign in to comment.