nixpkgs/pkgs/build-support/rust/rustc-wrapper
Alyssa Ross ca8a6d8c19 wrapRustcWith: allow --sysroot to be overridden
It turns out that unlike a normal Unix program, if the --sysroot
option is given more than once, rustc will error rather than using the
last value given.  Therefore, we need to ensure we only add our
default --sysroot argument if one hasn't been given explicitly on the
wrapper's command line.

This fixes cross compilation of rustc.

Closes: https://github.com/NixOS/nixpkgs/issues/271736
Fixes: 8b51cdd3be ("rustc: add a compiler wrapper")
2023-12-19 11:34:02 +01:00
..
default.nix
rustc-wrapper.sh wrapRustcWith: allow --sysroot to be overridden 2023-12-19 11:34:02 +01:00