Skip to content

Make llvm-libunwind a per-target option - #93604

Merged
bors merged 1 commit into
rust-lang:masterfrom
tmandry:libunwind-fuchsia-default
May 25, 2022
Merged

Make llvm-libunwind a per-target option#93604
bors merged 1 commit into
rust-lang:masterfrom
tmandry:libunwind-fuchsia-default

Conversation

@tmandry

Copy link
Copy Markdown
Member

Fuchsia doesn't ship libunwind in its SDK, so we must provide it statically.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 2, 2022
Comment threadlibrary/unwind/src/libunwind.rs Outdated
@rust-log-analyzer

This comment has been minimized.

@petrochenkov

Copy link
Copy Markdown
Contributor

cc @12101111

@tmandrytmandry added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 5, 2022
@Mark-SimulacrumMark-Simulacrum added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 5, 2022
Comment threadsrc/bootstrap/compile.rs Outdated
Comment threadconfig.toml.example Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not expect this to override the target default? Unless I'm misunderstanding, I would expect us to have:

  • target.llvm-libunwind (if set)
  • (global) llvm-libunwind (if set)
  • target.llvm-libunwind (default)
  • (global) llvm-unwind (default)

as the rough order.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the intended order. I'm trying to point out the relative ordering between #2 and #3 in your comment. Can you think of wording that would be clearer?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just essentially inlining my list as-is? Maybe saying something like "Note that the target-specific option llvm-libunwind will override this if set" would work too. "Overrides target default" to me feels a little unclear -- I think it can only mean one thing on a second reading, but the initial implication seems confusing, maybe because it is saying something that sounds obviously true to me :)

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went with your second suggestion, is this more clear?

@Mark-SimulacrumMark-Simulacrum added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 6, 2022
@tmandry
tmandryforce-pushed the libunwind-fuchsia-default branch from 1e70caa to 42624baCompareMarch 10, 2022 02:08
@tmandrytmandry added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 10, 2022
@Mark-Simulacrum

Copy link
Copy Markdown
Member

Yes, seems great.

@bors r+ rollup

@bors

bors commented Mar 10, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 42624ba has been approved by Mark-Simulacrum

@borsbors 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 Mar 10, 2022
m-ou-se added a commit to m-ou-se/rust that referenced this pull request Mar 10, 2022
…r=Mark-Simulacrum
Use in-tree libunwind by default on Fuchsia
Fuchsia doesn't ship libunwind in its SDK, so we must provide it statically.
@m-ou-sem-ou-se mentioned this pull request Mar 10, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Mar 10, 2022
…r=Mark-Simulacrum
Use in-tree libunwind by default on Fuchsia
Fuchsia doesn't ship libunwind in its SDK, so we must provide it statically.
@Dylan-DPCDylan-DPC mentioned this pull request Mar 10, 2022
@Dylan-DPC

Copy link
Copy Markdown
Member

@bors r-

failed in rollup

@borsbors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 10, 2022
@bors

bors commented Mar 13, 2022

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #94916) made this pull request unmergeable. Please resolve the merge conflicts.

@tmandry
tmandryforce-pushed the libunwind-fuchsia-default branch from 42624ba to 9d857d9CompareMarch 18, 2022 22:01
@apirainoapiraino added the T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. label May 19, 2022
@tmandry
tmandryforce-pushed the libunwind-fuchsia-default branch from 9d857d9 to f1e3d40CompareMay 24, 2022 23:00
@tmandrytmandry changed the title Use in-tree libunwind by default on FuchsiaMake llvm-libunwind a per-target optionMay 24, 2022
@tmandry

Copy link
Copy Markdown
MemberAuthor

Since this hit a snag building llvm-libunwind in Rust CI, I've taken out the Fuchsia-specific code from this PR so we can land the per-target logic.

@tmandry

Copy link
Copy Markdown
MemberAuthor

@bors r=Mark-Simulacrum

@bors

bors commented May 24, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit f1e3d40 has been approved by Mark-Simulacrum

@borsbors 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 24, 2022
@Dylan-DPCDylan-DPC mentioned this pull request May 25, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request May 25, 2022
Rollup of 5 pull requests
Successful merges:
- rust-lang#93604 (Make llvm-libunwind a per-target option)
- rust-lang#97026 (Change orderings of `Debug` for the Atomic types to `Relaxed`.)
- rust-lang#97105 (Add tests for lint on type dependent on consts)
- rust-lang#97323 (Introduce stricter checks for might_permit_raw_init under a debug flag )
- rust-lang#97379 (Add aliases for `current_dir`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit bbb88ea into rust-lang:masterMay 25, 2022
@rustbotrustbot added this to the 1.63.0 milestone May 25, 2022
@tmandry
tmandry deleted the libunwind-fuchsia-default branch May 25, 2022 18:30
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 13, 2022
…, r=tmandry
Use llvm-libunwind="in-tree" for Fuchsia targets
With updates to Fuchsia CI's Zircon libraries rust-lang#99833, we can introduce `llvm-libunwind="in-tree"` for Fuchsia targets. This PR restores functionality removed from rust-lang#93604 (comment).
cc `@tmandry` `@djkoloski`
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@tmandry@rust-highfive@rust-log-analyzer@petrochenkov@Mark-Simulacrum@bors@Dylan-DPC@apiraino@rustbot