-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
document args for -Zbuild-std
when folks aren't building everything
#14889
Comments
Isn't thumbv8m.main-none-eabihf (supposed to be) a no_std target? There is no OS such code runs on. |
We're using |
We probably need to use |
crate::sys::thread_local::key::StaticKey
-Zbuild-std
when folks aren't building everything
probably in the unstable book for the option? |
sorry for absconding with your issue @robertbastian but it seems to me that not being able to build std is uhhh expected on a |
Triage: The job to fix a nicer "UI" for -Zbuild-std belongs to the cargo project. Can someone with sufficient privileges move this to the cargo project please? Thanks! |
@rustbot transfer cargo |
There was a discussion on Zulip about why people building std for |
@weihanglo Despite the name Embedded often wants this. For instance, there are cases where there is a target, but its baseline features don't include a feature your CPU has, so you want to rebuild the stdlib, which was compiled against that baseline, against your actual available features. |
I tried this code:
$ cargo init repro $ cd repro $ cargo +nightly check --target thumbv8m.main-none-eabihf -Zbuild-std=std
I expected to see this happen: builds successfully
Instead, this happened:
Meta
The text was updated successfully, but these errors were encountered: