nixpkgs/pkgs/development/compilers/rust
Alyssa Ross 6f8fa05acf
wrapRustc: wrap rustdoc
We need to set -crt-static on musl for rustdoc as well, so let's unify
the wrappers.  Ideally, rather than wrapping rustdoc, we'd have
rustdoc use the wrapped rustc, but that's currently only possible with
an unstable option (--test-builder).

The options set by the wrapper, -C target-feature and --sysroot, are
supported by both rustdoc and rustc, but other flags maybe not be
supported by both, so I've introduced different environment
variables (the existing NIX_RUSTFLAGS and a new NIX_RUSTDOCFLAGS) to
allow those to be set independently.

This fixes cargo-auditable in pkgsMusl., which broke because its
doctests stopped working when -crt-static was moved to the wrapper.

Fixes: 79156bf13a ("rustc: move crt-static default override to wrapper (#291829)")
2024-03-02 13:09: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
cargo_cross.nix
cargo-auditable-cargo-wrapper.nix
cargo-auditable.nix
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
print-hashes.sh
rust-lib-src.nix
rust-src.nix
rustc.nix wrapRustc: wrap rustdoc 2024-03-02 13:09: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