-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
#[no_std] no longer works #9839
Comments
Could (NB. I have no understanding of the implementation in #9834 at all.) |
In theory it's possible, but this can't be a normal language item int he sense that it's required to have I do suppose though that a lang item is a nice way to wire this up, but I still like the idea of having a |
I'm going to close this because I don't believe that there's much to do as a result of this. This attribute "just working" depends on having a solution for whether the __morestack prologue should be present or not. We have chosen for now for this to always be there, so I think that this is essentially working as intended. |
It still doesn't work, though. It's not possible to use freestanding Rust without using |
I'd recommend opening up more specific issues for those problems, I don't think this "it doesn't work" blanket issue works very well for tracking progress. |
I don't think metabugs are very useful either, but I'm not sure what the specific solution to these problems should be. |
Is there a followup to this issue? |
#11871 blocks using #10780 blocks using static linking rather than link-time optimization. #10116 is an annoyance forcing the extra step of building a separate crate with |
Once #9834 gets merged,
#[no_std]
will no longer work for any crates. The reason for this is that__morestack
now requires arust_stack_exhausted
function. We should provide crates linking with#[no_std]
a dummy implementation of__morestack
which invokesabort()
so that they may continue to compile.Furthermore, a crate should also be able to say "I'm providing my own morestack" and we don't link to
libmorestack.a
by default regardless.The text was updated successfully, but these errors were encountered: