- Notifications
You must be signed in to change notification settings - Fork13.6k
Fix-Ctarget-feature
s getting ignored aftercrt-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 ourterms of service andprivacy 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 commita50a3b8 would discard anytarget features specified after crt-static (the only member ofRUSTC_SPECIFIC_FEATURES). This is because it returned instead ofcontinuing processing the next flag.Signed-off-by: Jens Reidel <adrian@travitia.xyz>
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
rustbot has assigned@compiler-errors. Use |
Some changes occurred in compiler/rustc_codegen_ssa |
-Ctarget-features
getting ignored aftercrt-static
-Ctarget-feature
s getting ignored aftercrt-static
This should probably also be backported to 1.89. |
apiraino commentedJul 18, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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. |
Uh oh!
There was an error while loading.Please reload this page.
The current behaviour introduced by commita50a3b8 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