mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
6f8fa05acf
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:
|
||
---|---|---|
.. | ||
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 |