-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
std: Use backtrace-sys from crates.io #56836
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.
r=me, with or without the glob import
This comment has been minimized.
This comment has been minimized.
@@ -79,67 +67,3 @@ fn main() { | |||
println!("cargo:rustc-link-lib=compiler_rt"); | |||
} | |||
} | |||
|
|||
fn build_libbacktrace(target: &str) -> Result<(), ()> { | |||
let native = native_lib_boilerplate( |
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.
At least one drawback of this change is that backtrace-sys
is no longer built once for all stages, but is built again for each stage.
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.
True! Nowadays though it uses the cc
crate instead of a configure script, so it's much faster. It's only 4-5 object files ish
This comment has been minimized.
This comment has been minimized.
a0b5ac1
to
77f2688
Compare
@bors: r=Mark-Simulacrum |
📌 Commit 77f2688671ce8b3276ad5db6ed4f63ba8e09b9c2 has been approved by |
This comment has been minimized.
This comment has been minimized.
@bors: r- |
This comment has been minimized.
This comment has been minimized.
77f2688
to
04c35c3
Compare
@bors: r=Mark-Simulacrum |
📌 Commit 04c35c36e67d01d7bc737fda92f1d1c38bb4e954 has been approved by |
⌛ Testing commit 04c35c36e67d01d7bc737fda92f1d1c38bb4e954 with merge 71526eb9a88ebc954cfd41e216a6f270c503a9da... |
💔 Test failed - status-travis |
⌛ Testing commit d175cac7e2ab2ed0e391219ddb16fd067638fd44 with merge ea3e89bec278e1ff19938eaf00a9454dc9eb8cb2... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
d175cac
to
bfc8ed7
Compare
@bors: r=Mark-Simulacrum |
📌 Commit bfc8ed774cf4e442a9090d5d866020ff494b2b8d has been approved by |
🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming
You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Error message
|
🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming
You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Error message
|
This commit switches the standard library to using the `backtrace-sys` crate from crates.io instead of duplicating the logic here in the Rust repositor with the `backtrace-sys`'s crate's logic. Eventually this will hopefully be a good step towards using the `backtrace` crate directly from crates.io itself, but we're not quite there yet! Hopefully this is a small incremental first step we can take.
bfc8ed7
to
8d50057
Compare
@bors: r=Mark-Simulacrum |
📌 Commit 8d50057 has been approved by |
std: Use backtrace-sys from crates.io This commit switches the standard library to using the `backtrace-sys` crate from crates.io instead of duplicating the logic here in the Rust repositor with the `backtrace-sys`'s crate's logic. Eventually this will hopefully be a good step towards using the `backtrace` crate directly from crates.io itself, but we're not quite there yet! Hopefully this is a small incremental first step we can take.
☀️ Test successful - status-appveyor, status-travis |
This commit switches the standard library to using the
backtrace-sys
crate from crates.io instead of duplicating the logic here in the Rust
repositor with the
backtrace-sys
's crate's logic.Eventually this will hopefully be a good step towards using the
backtrace
crate directly from crates.io itself, but we're not quitethere yet! Hopefully this is a small incremental first step we can take.