-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Fix build of std for thumbv7a-pc-windows-msvc #103989
Conversation
r? @m-ou-se (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
|
Nominating for beta backport to fix a Tier 3 target build error. |
Why did this work before? What changed? If unwinding doesn't work on this target, wouldn't it be preferable to force it to use |
It does have the abort panic strategy:
And the following works:
But building |
Bisection shows that it was caused by the LLVM 15 update - #99464. Maybe LLVM previously generated bad unwinding code (that was unused due to panic=abort), and now LLVM errors instead? It looked like other targets that didn't have unwinding support used the "dummy" implementation, so that what I did here. |
LGTM, it seems this is what we do for all targets that don't support unwinding. @bors r+ @wesleywiser Is a backport useful? Aren't tier-3 targets only usable with |
@bors r+ |
@Amanieu I figured since we hit this in 1.65, it might be nice to have this resolved in 1.66. It's a Tier 3 target though, so I completely understand if T-libs doesn't want to backport! |
…iaskrgr Rollup of 10 pull requests Successful merges: - rust-lang#103117 (Use `IsTerminal` in place of `atty`) - rust-lang#103969 (Partial support for running UI tests with `download-rustc`) - rust-lang#103989 (Fix build of std for thumbv7a-pc-windows-msvc) - rust-lang#104076 (fix sysroot issue which appears for ci downloaded rustc) - rust-lang#104469 (Make "long type" printing type aware and trim types in E0275) - rust-lang#104497 (detect () to avoid redundant <> suggestion for type) - rust-lang#104577 (Don't focus on notable trait parent when hiding it) - rust-lang#104587 (Update cargo) - rust-lang#104593 (Improve spans for RPITIT object-safety errors) - rust-lang#104604 (Migrate top buttons style to CSS variables) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…troalbini [stable] Prepare 1.66.0 release This PR prepares the artifacts for the 1.66.0 release. The following PRs have been backported: * rust-lang#104782 * rust-lang#105023 * rust-lang#104558 * rust-lang#104610 * rust-lang#103989 * rust-lang#104650 * rust-lang#105539 * rust-lang#105477 r? `@ghost`
Attempting to build std for the tier-3 target
thumbv7a-pc-windows-msvc
fails with the following error:EH (unwinding) is not supported by LLVM for 32 bit arm msvc targets. This changes panic unwind to use the dummy implementation for
thumbv7a-pc-windows-msvc
.