-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass flags to rustdoc
shim without env. vars
#116449
Conversation
This comment has been minimized.
This comment has been minimized.
rustc
shim using prefixed env. varsrustdoc
shim without env. vars
I recalled what the issue with doctests was - bootstrap passes options to rustdoc only when it calls rustdoc directly, not through cargo. |
This really needs to be tested separately, with full |
Yes, this accurately describes the state on Do you have an example of a |
|
I looked around and there are indeed a few places where rustdoc is being executed without the linker being set ( If we set |
Yes, that was the case when I originally implemented |
Okay so I investigated a bit and the only place where rustdoc is invoked manually (outside of Line 846 in acd1869
rustdoc-theme command before actually passing the rustdoc command, but I don't think that Command allows prepending arguments, so that we could call rustdoc_cmd and then prepend rustdoc-theme .
|
acd1869
to
e42eeea
Compare
I have added two functions to add the LLD flags to both normal rustdoc and cargo rustdoc invocations. It's far from pretty.. |
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
e42eeea
to
fa86c78
Compare
Rebased and tested full @rustbot ready |
This comment has been minimized.
This comment has been minimized.
I'm also not sure whether the CI failure in #116449 (comment) is spurious or not. |
I'm also unsure about the CI failure, it happened repeatedly, but I can't reproduce it locally. Let's see what happens now. |
This comment has been minimized.
This comment has been minimized.
There was a problem with empty @rustbot ready |
@bors r+ |
…rochenkov Pass flags to `rustdoc` shim without env. vars Discussed here: rust-lang#116448 (comment). Since it was not really documented why these flags were passed through the shim, I guess that the only way to find out if it's really needed... is to remove it :) r? `@petrochenkov`
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
4ba9586
to
2e7d684
Compare
A redundant use statement was in windows @bors r=petrochenkov |
☀️ Test successful - checks-actions |
Finished benchmarking commit (e7b2285): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 677.592s -> 676.441s (-0.17%) |
Discussed here: #116448 (comment). Since it was not really documented why these flags were passed through the shim, I guess that the only way to find out if it's really needed... is to remove it :)
r? @petrochenkov