nixpkgs/pkgs/build-support/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
..
build-rust-crate Merge pull request #274440 from bouk/missing-build-rust-env 2024-01-29 17:31:54 +01:00
build-rust-package buildRustPackage: disable cargo-auditable on pkgsStatic aarch64 2024-01-15 22:34:02 +01:00
fetch-cargo-tarball rustPlatform.fetchCargoTarball: remove explicit sparse protocol 2023-06-02 21:28:57 -04:00
hooks rust: allow linker to be different from compiler 2024-01-15 22:34:02 +01:00
lib rust.envVars: use wrapped LLD for aarch64 musl 2024-01-23 17:25:50 +01:00
rustc-wrapper rustc: move crt-static default override to wrapper (#291829) 2024-02-28 23:10:07 +01:00
sysroot build-support/rust/sysroot: let cargo-src crate become no_std 2023-03-12 12:24:23 +01:00
test/import-cargo-lock tests.importCargoLock.maturin: reexport maturin.tests.pyo3 2023-06-19 10:42:24 -04:00
default-crate-overrides.nix default-crate-overrides: add libseat-sys 2023-08-26 01:08:29 -07:00
fetchcargo-default-config.toml
fetchcrate.nix fetchCrate: fix registryDl 2023-05-28 13:20:03 -04:00
import-cargo-lock.nix rustPlatform.importCargoLock: fix workspace_root detection 2023-12-21 19:40:43 -05:00
replace-workspace-values.py rustPlatform.importCargoLock: copy lints from workspace 2023-12-16 05:36:59 +00:00