Skip to content
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

Use safer strip=symbols-flag for dylibs on macOS #97991

Merged
merged 1 commit into from
Jun 12, 2022

Conversation

davidkna
Copy link
Contributor

Closes #93988

To safely strip dylibs on macOS, the -x flag is needed per the manpage (see the discussion here: #93988 (comment)).

Thus, when the current crate_type is producing a dylib (I assume this is the case for proc macros) use the -x flag instead of bare strip for strip=symbols.

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jun 11, 2022
@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @lcnr (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 11, 2022
@joshtriplett
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jun 12, 2022

📌 Commit 8558b35 has been approved by joshtriplett

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 12, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 12, 2022
Rollup of 5 pull requests

Successful merges:

 - rust-lang#97921 (additional docs example for replace **all** of str)
 - rust-lang#97970 (Fix Termination impl panic on closed stderr)
 - rust-lang#97991 (Use safer `strip=symbols`-flag for dylibs on macOS)
 - rust-lang#97992 (Stabilize scoped threads.)
 - rust-lang#98012 (`ValuePairs::PolyTraitRefs` should be called "trait"s in type error diagnostics)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 265e0f0 into rust-lang:master Jun 12, 2022
@rustbot rustbot added this to the 1.63.0 milestone Jun 12, 2022
@davidkna davidkna deleted the fix-macos-strip branch June 12, 2022 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
6 participants