-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Cleanup sysroot locating a bit #138404
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
Cleanup sysroot locating a bit #138404
Conversation
Some changes occurred in compiler/rustc_codegen_ssa
|
This comment has been minimized.
This comment has been minimized.
4958015
to
c61439c
Compare
I was complaining about this in #129418, but only did one step of the cleanup. |
r=me unless jieyouxu wants to look. |
@@ -1214,7 +1214,7 @@ impl Default for Options { | |||
describe_lints: false, | |||
output_types: OutputTypes(BTreeMap::new()), | |||
search_paths: vec![], | |||
maybe_sysroot: None, | |||
sysroot: filesearch::materialize_sysroot(None), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should use PathBuf::new()
? It is only used for tests.
This comment has been minimized.
This comment has been minimized.
5c2c5df
to
bdc7041
Compare
Fixed rustdoc and added a commit to remove the unused host_tlib_path field. |
This comment has been minimized.
This comment has been minimized.
build_session_options always uses materialize_sysroot anyway.
All callers unwrap the result.
bdc7041
to
1543256
Compare
Seems fine to me as well, thanks! @bors r=petrochenkov,jieyouxu |
…=petrochenkov,jieyouxu Cleanup sysroot locating a bit All commits should preserve existing behavior.
…=petrochenkov,jieyouxu Cleanup sysroot locating a bit All commits should preserve existing behavior.
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#137816 (attempt to support `BinaryFormat::Xcoff` in `naked_asm!`) - rust-lang#138109 (make precise capturing args in rustdoc Json typed) - rust-lang#138343 (Enable `f16` tests for `powf`) - rust-lang#138356 (bump libc to 0.2.171 to fix xous) - rust-lang#138371 (Update compiletest's `has_asm_support` to match rustc) - rust-lang#138380 (ci: add runners for vanilla LLVM 20) - rust-lang#138404 (Cleanup sysroot locating a bit) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#137816 (attempt to support `BinaryFormat::Xcoff` in `naked_asm!`) - rust-lang#138109 (make precise capturing args in rustdoc Json typed) - rust-lang#138343 (Enable `f16` tests for `powf`) - rust-lang#138356 (bump libc to 0.2.171 to fix xous) - rust-lang#138371 (Update compiletest's `has_asm_support` to match rustc) - rust-lang#138404 (Cleanup sysroot locating a bit) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#138404 - bjorn3:sysroot_handling_cleanup, r=petrochenkov,jieyouxu Cleanup sysroot locating a bit All commits should preserve existing behavior.
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#137816 (attempt to support `BinaryFormat::Xcoff` in `naked_asm!`) - rust-lang#138109 (make precise capturing args in rustdoc Json typed) - rust-lang#138343 (Enable `f16` tests for `powf`) - rust-lang#138356 (bump libc to 0.2.171 to fix xous) - rust-lang#138371 (Update compiletest's `has_asm_support` to match rustc) - rust-lang#138404 (Cleanup sysroot locating a bit) r? `@ghost` `@rustbot` modify labels: rollup
All commits should preserve existing behavior.