-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Set cc for rustdoc #7529
Copy link
Copy link
Closed
Labels
A-doctest-xcompileArea: doctest cross-compilationArea: doctest cross-compilationA-doctestsArea: rustdoc --testArea: rustdoc --testC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Metadata
Metadata
Assignees
Labels
A-doctest-xcompileArea: doctest cross-compilationArea: doctest cross-compilationA-doctestsArea: rustdoc --testArea: rustdoc --testC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the problem you are trying to solve
I can't find a way to set the
ccforrustdoc.CARGO_TARGET_XXX_LINKERis not passed, and it appears thatrustdocreacts neither toCARGO_BUILD_RUSTFLAGS=-C linker=/path/to/ccnor toCC=/path/to/cc. One solution may be to setRUSTDOCFLAGS=-Z unstable-options --linker=/path/to/ccbut this is only enabled on nightly, which I don't have.Describe the solution you'd like
It would be great for cargo to forward
CARGO_TARGET_XX_LINKERtorustdoc, whereXXXis theCARGO_BUILD_TARGET.