-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Bootstrap fun with '-Cpanic=abort' #34061
Comments
Rustc uses unwinding to signal compilation errors, so the rustc you're going to build will abort on compile errors instead of exiting gracefully. Not sure what this would mean in practice (I've never used |
@petevine That patch only removes the |
That’s a weird codegen issue. Does it also happen with |
@nagisa Yes it does, with a small twist: Stored value type does not match pointer operand type!
store i8* null, i32* %tmp_ret |
The issue is that building
That's probably the sane solution, although that's not the only crate you would have to treat like this. @alexcrichton This is the general problem of providing multiple usable configurations: I don't see a good way around many builds of libstd, one for each specific configuration. |
@petevine There are some problems preventing running I think we could fix this codegen bug and maybe then what you were trying to do would work, as long as you wouldn't bother running tests. |
@eddyb yeah we will likely ship a |
@eddyb It was just some honest experimentation but I got emboldened by the positive results I got from building I guess it's partly explained here but the error message doesn't tell us which crate is the problem one. |
#33999 A rustc that doesn't care about crashing should be buildable with
panic=abort
. Could it work, even now, if building thelibpanic_unwind
crate, the flag simply got ignored?The text was updated successfully, but these errors were encountered: