-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
rustc: Move location of codegen-backends
dir
#47893
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
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.
Other than the small nit r=me. Seems like a good idea...
src/bootstrap/compile.rs
Outdated
let libdir = builder.sysroot_libdir(target_compiler, target); | ||
let dst = libdir.join("codegen-backends"); | ||
let dst = builder.sysroot_libdir(target_compiler, target) | ||
.parent() |
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.
I believe we probably want to make this a dedicated function on builder. It seems like it's a relatively common thing to want (or at least that multiple places want it).
096a67a
to
751e07b
Compare
@bors: r=Mark-Simulacrum |
📌 Commit 751e07b has been approved by |
@bors r- On
|
751e07b
to
0e69f2d
Compare
@bors: r=Mark-Simulacrum |
📌 Commit 0e69f2d has been approved by |
src/bootstrap/builder.rs
Outdated
self.sysroot_libdir(compiler, compiler.host) | ||
.parent() | ||
.unwrap() | ||
.join("codegen-backends") |
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.
Nit pick: x.parent().unwrap().join("y")
is the same as x.with_file_name("y")
(unless x
is root).
Right now this directory is located under: $sysroot/lib/rustlib/$target/lib/codegen-backends but after seeing what we do in a few other places it seems that a more appropriate location would be: $sysroot/lib/rustlib/$target/codegen-backends so this commit moves it!
0e69f2d
to
8ebe542
Compare
@bors: r=Mark-Simulacrum |
📌 Commit 8ebe542 has been approved by |
… r=alexcrichton rustc: Move location of `codegen-backends` dir Right now this directory is located under: ``` $sysroot/lib/rustlib/$target/lib/codegen-backends ``` but after seeing what we do in a few other places it seems that a more appropriate location would be: ``` $sysroot/lib/rustlib/$target/codegen-backends ``` so this commit moves it!
Right now this directory is located under:
but after seeing what we do in a few other places it seems that a more
appropriate location would be:
so this commit moves it!