-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Fix -Ctarget-feature
s getting ignored after crt-static
#144143
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
base: master
Are you sure you want to change the base?
Conversation
The current behaviour introduced by commit a50a3b8 would discard any target features specified after crt-static (the only member of RUSTC_SPECIFIC_FEATURES). This is because it returned instead of continuing processing the next flag. Signed-off-by: Jens Reidel <[email protected]>
Signed-off-by: Jens Reidel <[email protected]>
rustbot has assigned @compiler-errors. Use |
Some changes occurred in compiler/rustc_codegen_ssa |
-Ctarget-features
getting ignored after crt-static
-Ctarget-feature
s getting ignored after crt-static
This should probably also be backported to 1.89. |
Regression introduced in #140920 |
Zulip discussion: #t-compiler/help > Lots of ABI/target-feature test fails |
@Gelbpunkt can you open an issue for this? We usually don't require issues for bug fixes but we use them for tracking backports, so it would be useful here. |
The current behaviour introduced by commit a50a3b8 would discard any target features specified after
crt-static
(the only member ofRUSTC_SPECIFIC_FEATURES
). This is because it returned instead of continuing processing the next feature.I wasn't entirely sure how the regression test should look like, but this one should do. If anyone has some suggestions, I'm happy to learn, it's my first test :)
I've confirmed that the test fails without the fix on
powerpc64le-unknown-linux-musl
andx86_64-unknown-linux-gnu
.cc @RalfJung