rustdoc fails to account for -Clinker
and -Clink-arg
when building tests
#65171
Labels
A-doctests
Area: Documentation tests, run by rustdoc
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I’m working on a fairly peculiar system at the moment where the default linker (
cc
) is not able of linking properly, and thus I set the following environment variableswhich made
cargo build
pass. Howevercargo test
still fails because doctests are still being compiled with the default linker. Runningcargo test --verbose
reveals that the flags are being passed through torustdoc
:However,
rustdoc
still uses a default linker:(Tested with
rustdoc 1.38.0 (625451e37 2019-09-23)
)The text was updated successfully, but these errors were encountered: