-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
rustdoc fails to account for -Clinker and -Clink-arg when building tests #65171
Copy link
Copy link
Closed
Labels
A-doctestsArea: Documentation tests, run by rustdocArea: Documentation tests, run by rustdocA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-doctestsArea: Documentation tests, run by rustdocArea: Documentation tests, run by rustdocA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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 buildpass. Howevercargo teststill fails because doctests are still being compiled with the default linker. Runningcargo test --verbosereveals that the flags are being passed through torustdoc:However,
rustdocstill uses a default linker:(Tested with
rustdoc 1.38.0 (625451e37 2019-09-23))