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

llvm: Disable pthread on mingw #11013

Merged
merged 2 commits into from
Dec 18, 2013
Merged

llvm: Disable pthread on mingw #11013

merged 2 commits into from
Dec 18, 2013

Conversation

klutzy
Copy link
Contributor

@klutzy klutzy commented Dec 17, 2013

llvm supports both win32 native threads and pthread,
but configure tries to find pthread first.
This manually disables pthread to use native api.

This removes libpthreads-2.dll dependency on librustc.

@alexcrichton
Copy link
Member

This also needs to modify src/etc/mklldeps.py to remove the manual linking to pthread

@klutzy
Copy link
Contributor Author

klutzy commented Dec 17, 2013

rebased; fixed mklldeps,py.

@alexcrichton
Copy link
Member

Nice find! I look forward to the day that winnt_runtime_deps is an empty array!

@klutzy
Copy link
Contributor Author

klutzy commented Dec 18, 2013

I realized llvm should be rebuilt. Added clean trigger.

@alexcrichton
Copy link
Member

This is approaching the realm of "squashing may be better"

llvm supports both win32 native threads and pthread,
but configure tries to find pthread first.
This manually disables pthread to use native api.

This removes libpthreads-2.dll dependency on librustc.
It seems that msys automatically converts `\n` to `\r\n` on pipe
redirection, which causes `make tidy` failure.
bors added a commit that referenced this pull request Dec 18, 2013
llvm supports both win32 native threads and pthread,
but configure tries to find pthread first.
This manually disables pthread to use native api.

This removes libpthreads-2.dll dependency on librustc.
@bors bors closed this Dec 18, 2013
@bors bors merged commit b0a9937 into rust-lang:master Dec 18, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 30, 2023
…affate

New lint [`redundant_at_rest_pattern`]

Closes rust-lang#11011

It's always a great feeling when a new lint triggers on clippy itself 😄

changelog: New lint [`redundant_at_rest_pattern`]
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.

3 participants