Skip to content

Fix build with #[unix_sigpipe = "..."] support in rustc - #2532

Merged
bors merged 1 commit into
rust-lang:masterfrom
Enselic:fix-build-with-unix_sigpipe
Sep 3, 2022
Merged

Fix build with #[unix_sigpipe = "..."] support in rustc#2532
bors merged 1 commit into
rust-lang:masterfrom
Enselic:fix-build-with-unix_sigpipe

Conversation

@Enselic

@Enselic Enselic commented Sep 3, 2022

Copy link
Copy Markdown
Member

@RalfJung

RalfJung commented Sep 3, 2022 via email

Copy link
Copy Markdown
Member

@Enselic
Enselic force-pushed the fix-build-with-unix_sigpipe branch from b9c13ef to 351d9bf Compare September 3, 2022 09:02
@Enselic

Enselic commented Sep 3, 2022

Copy link
Copy Markdown
Member Author

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.

Comment thread src/eval.rs
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
Copy Markdown
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.

@Enselic Enselic Sep 3, 2022

Copy link
Copy Markdown
Member Author

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 🥳

@Enselic
Enselic force-pushed the fix-build-with-unix_sigpipe branch from 351d9bf to c011126 Compare September 3, 2022 10:24
@RalfJung

RalfJung commented Sep 3, 2022 via email

Copy link
Copy Markdown
Member

@bors

bors commented Sep 3, 2022

Copy link
Copy Markdown
Contributor

📌 Commit c011126 has been approved by RalfJung

It is now in the queue for this repository.

@bors

bors commented Sep 3, 2022

Copy link
Copy Markdown
Contributor

⌛ Testing commit c011126 with merge 9073179...

@bors

bors commented Sep 3, 2022

Copy link
Copy Markdown
Contributor

☀️ 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