-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
When target_family is None, rustc sets it to unix. #38187
Comments
All of the built-in For embedded targets I'd suggest using a new (see also #29551) |
Ok yes, changing it would break backwards compatibility. Although I wonder how many non unix target specs out there will break when they hit a crate with If we leave it as is, we should add |
Also related are
they should consistently all be CC @japaric |
This should have been fixed (the target_family part) in #38401. |
OK, yes that is my preferred fix, but it will probably break some custom target specs as @arcnmx mentions. |
I think a project of mine got hit by the fallout of this. Though what's more interesting is that manually setting the Edit: Scratch that. It helps to use the proper syntax in the config file! |
See
rust/src/librustc/session/config.rs
Lines 946 to 952 in ebeee0e
This is very unhelpful for bare-metal targets where there is no target family. Is there code that relies on it defaulting to unix if it is unspecified?
CC @arcnmx
The text was updated successfully, but these errors were encountered: