-
Notifications
You must be signed in to change notification settings - Fork 360
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
Fix build with #[unix_sigpipe = "..."]
support in rustc
#2532
Conversation
Could you update the rust-version file? Right now it is still testing the old rustc.
I think further adjustment will be needed, since Miri needs to pass the right number of arguments to the start fn.
|
b9c13ef
to
351d9bf
Compare
Yeah I was a bit rushed before and only tried to build and not run tests. Running tests revealed at least one more problem. This is not a complete solution though because tests are still failing locally for me, but it takes one more step in the right direction. Maybe I will find more time this evening to work on this. |
src/eval.rs
Outdated
@@ -301,10 +301,12 @@ pub fn create_ecx<'mir, 'tcx: 'mir>( | |||
)?; | |||
} | |||
EntryFnType::Start => { | |||
let sigpipe = 2; // Inlining of `DEFAULT` from https://github.com/rust-lang/rust/blob/master/compiler/rustc_session/src/config/sigpipe.rs | |||
let sigpipe_arg = Scalar::from_u8(sigpipe); | |||
ecx.call_function( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's another call_function
a few lines up, that one probably also needs to be adjusted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, yes, I got it backwards in my head, I should change that place instead of this place.
All tests pass locally for me now, hopefully it all works in CI too.
Edit: CI passed 🥳
351d9bf
to
c011126
Compare
Thanks!
@bors r+
|
☀️ Test successful - checks-actions |
Closes rust-lang/rust#101352
CC @RalfJung @oli-obk