Use raw-dylib for Windows synchronization functions by ChrisDenton · Pull Request #124019 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation10 Commits2 Checks12 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

ChrisDenton

Fixes #123999 by using the raw-dylib feature to specify the DLL to load the Windows futex functions from (e.g. WaitOnAddress). This avoids reliance on the import library causing that issue.

With apologies to @bjorn3, as it's currently necessary to revert this for cranelift.

@rustbot

r? @compiler-errors

rustbot has assigned @compiler-errors.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added O-windows

Operating system: Windows

S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.

T-libs

Relevant to the library team, which will review and decide on the PR/issue.

labels

Apr 16, 2024

@rustbot

Some changes occurred in compiler/rustc_codegen_cranelift

cc @bjorn3

@ChrisDenton

Oh silly bot, this is really a libs thing. Just with a bit of cranelift sprinkled on top,

r? libs

bjorn3

bjorn3

@rust-log-analyzer

This comment has been minimized.

@ChrisDenton

This is a workaround for older mingw synchronization import library not working on at least some system.

@ChrisDenton

@joboet

Looks fine to me, considering that windows does the same thing.

@bors r+

@bors

📌 Commit 5b024d6 has been approved by joboet

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Apr 18, 2024

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request

Apr 18, 2024

@GuillaumeGomez

This was referenced

Apr 18, 2024

workingjubilee added a commit to workingjubilee/rustc that referenced this pull request

Apr 18, 2024

@workingjubilee

bors added a commit to rust-lang-ci/rust that referenced this pull request

Apr 19, 2024

@bors

…kingjubilee

Rollup of 9 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Apr 19, 2024

@bors

…kingjubilee

Rollup of 7 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Apr 19, 2024

@rust-timer

@ChrisDenton ChrisDenton added beta-nominated

Nominated for backporting to the compiler in the beta channel.

and removed T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.

labels

Apr 19, 2024

@ChrisDenton

I'm nominating this for a beta backport, even though this isn't technically a Rust issue. See linked issue for more but the short version is that the windows-2019 github action runner comes with a years old mingw that has a bug which will prevent windows-gnu std from working if compiled on that machine. This PR works around the bug. It's a small PR so I think it's worth it to make sure that stable works out of the box on windows-2019.

Note that the windows-latest runner isn't affected.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Apr 28, 2024

@bors

Labels

beta-accepted

Accepted for backporting to the compiler in the beta channel.

O-windows

Operating system: Windows

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

T-libs

Relevant to the library team, which will review and decide on the PR/issue.