nixpkgs/pkgs/development/compilers/rust
Alyssa Ross 79156bf13a
rustc: move crt-static default override to wrapper (#291829)
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.
2024-02-28 23:10:07 +01:00
..
1_76.nix cargo,rustc: 1.75.0 -> 1.76.0 2024-02-26 11:32:10 +01:00
binary.nix rustc: link to https homepage 2023-12-25 20:52:38 +01:00
bootstrap.nix lib.systems: elaborate Rust metadata 2023-11-09 10:02:24 +01:00
cargo_cross.nix rust: cargo: Use rustc and cargo built on Build 2023-09-10 14:48:39 +02:00
cargo-auditable-cargo-wrapper.nix cargo-auditable-cargo-wrapper: don't wrap if cargo-auditable is meta.broken (#250615) 2023-08-26 16:07:05 -05:00
cargo-auditable.nix cargo-auditable: fix cross compilation 2023-08-11 09:40:05 +01:00
cargo.nix rustc: move crt-static default override to wrapper (#291829) 2024-02-28 23:10:07 +01:00
clippy.nix clippy: add mainProgram 2024-01-26 11:11:50 -08:00
default.nix rust.envVars: use wrapped LLD for aarch64 musl 2024-01-23 17:25:50 +01:00
make-rust-platform.nix rustPlatform.rust: deprecate 2023-05-12 15:31:21 +00:00
print-hashes.sh rustc: 1.72.1 -> 1.73.0 2023-10-10 14:42:30 +00:00
rust-lib-src.nix
rust-src.nix
rustc.nix rustc: move crt-static default override to wrapper (#291829) 2024-02-28 23:10:07 +01:00
rustfmt.nix rustfmt: use unwrapped rustc when adding rpath for darwin 2023-12-15 17:46:56 +01:00
setup-hook.sh