mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
79156bf13a
Previously, when cross compiling from non-musl to musl, the crt-static default override wouldn't be applied, because the compiler wouldn't have been built with it due to fastCross. Moving it to the wrapper fixes this without having to introduce extra compiler rebuilds. And because the wrapper is applied even to the bootstrap rustc, we no longer need special handling of crt-static in the Cargo expression. Unlike --sysroot, rustc allows -C target-feature= to be passed multiple times, with later instances taking precedence over earlier ones. This means that it's very easy to set the default in the wrapper, just by our overridden default before any other arguments. This fixes pkgsCross.aarch64-multiplatform-musl.mesa from x86_64-linux. |
||
---|---|---|
.. | ||
build-rust-crate | ||
build-rust-package | ||
fetch-cargo-tarball | ||
hooks | ||
lib | ||
rustc-wrapper | ||
sysroot | ||
test/import-cargo-lock | ||
default-crate-overrides.nix | ||
fetchcargo-default-config.toml | ||
fetchcrate.nix | ||
import-cargo-lock.nix | ||
replace-workspace-values.py |