Skip to content
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

Merged
merged 1 commit into from
Sep 3, 2022

Conversation

Enselic
Copy link
Member

@Enselic Enselic commented Sep 3, 2022

@RalfJung
Copy link
Member

RalfJung commented Sep 3, 2022 via email

@Enselic
Copy link
Member Author

Enselic commented Sep 3, 2022

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(
Copy link
Member

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.

Copy link
Member Author

@Enselic Enselic Sep 3, 2022

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 🥳

@RalfJung
Copy link
Member

RalfJung commented Sep 3, 2022 via email

@bors
Copy link
Collaborator

bors commented Sep 3, 2022

📌 Commit c011126 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Sep 3, 2022

⌛ Testing commit c011126 with merge 9073179...

@bors
Copy link
Collaborator

bors commented Sep 3, 2022

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 9073179 to master...

@bors bors merged commit 9073179 into rust-lang:master Sep 3, 2022
@bors bors mentioned this pull request Sep 3, 2022
@Enselic Enselic deleted the fix-build-with-unix_sigpipe branch September 3, 2022 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

miri no longer builds after rust-lang/rust#97802
3 participants