-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Move most of unwind's build script to lib.rs #104241
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
@@ -108,3 +108,27 @@ extern "C" {} | |||
#[cfg(all(target_os = "windows", target_env = "gnu", target_abi = "llvm"))] | |||
#[link(name = "unwind", kind = "static", modifiers = "-bundle")] | |||
extern "C" {} | |||
|
|||
#[cfg(any(target_os = "freebsd", target_os = "netbsd"))] | |||
#[link(name = "gcc_s")] |
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.
Several of the existing #[link]
attributes use kind = "static", modifiers = "-bundle"
, but to keep behavior unchanged I didn't do this in the new #[link]
attributes.
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.
Those new targets don't need to use kind = "static"
, as the dynamic library are part of the base system.
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.
On sparc64-unknown-openbsd libgcc is used, which is a static library afaik.
Seems like an improvement, thanks! @bors r+ |
📌 Commit c2c88e631345fffd15a4f0c480248a76ee849d88 has been approved by It is now in the queue for this repository. |
☔ The latest upstream changes (presumably #103894) made this pull request unmergeable. Please resolve the merge conflicts. |
Only the android libunwind detection remains in the build script * Reduces dependence on build scripts for building the standard library * Reduces dependence on exact target names in favor of using semantic cfg(target_*) usage. * Keeps almost all code related to linking of the unwinder in one file
c2c88e6
to
53852ee
Compare
Rebased and fixed conflict. |
@bors r+ |
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#103439 (Show note where the macro failed to match) - rust-lang#103734 (Adjust stabilization version to 1.65.0 for wasi fds) - rust-lang#104148 (Visit attributes of trait impl items during AST validation) - rust-lang#104241 (Move most of unwind's build script to lib.rs) - rust-lang#104258 (Deduce closure signature from a type alias `impl Trait`'s supertraits) - rust-lang#104296 (Walk types more carefully in `ProhibitOpaqueTypes` visitor) - rust-lang#104309 (Slightly improve error message for invalid identifier) - rust-lang#104316 (Simplify suggestions for errors in generators.) - rust-lang#104339 (Add `rustc_deny_explicit_impl`) Failed merges: - rust-lang#103484 (Add `rust` to `let_underscore_lock` example) r? `@ghost` `@rustbot` modify labels: rollup
Only the android libunwind detection remains in the build script