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

Win64 fixes #10631

Merged
merged 6 commits into from
Nov 26, 2013
Merged

Win64 fixes #10631

merged 6 commits into from
Nov 26, 2013

Conversation

klutzy
Copy link
Contributor

@klutzy klutzy commented Nov 24, 2013

This patchset fixes some parts broken on Win64.

This also adds --disable-pthreads flags to llvm on mingw-w64 archs (both 32-bit and 64-bit, not mingw) due to bad performance. See #8996 for discussion.

@klutzy
Copy link
Contributor Author

klutzy commented Nov 24, 2013

I've manually built 64-bit rustc.exe using this script. However 64-bit one seems to work slowly.

@emberian
Copy link
Member

@klutzy do you have anyidea why it's so slow?

# pthreads works badly on mingw-w64 systems: #8996
case "$CFG_BUILD" in
(*w64-mingw32)
LLVM_OPTS="$LLVM_OPTS --disable-pthreads"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not believe that we should be doing this change at this time without further modification. If it's slow, then that's a problem, but this is a soundness issue.

It is unsound to use rustc from multiple tasks in the same process if we do not pass this flag to LLVM.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the flag only causes llvm to use win32 api for thread/critical section instead of pthreads api (there is separate --disable-threads option and it's not passed), but it definitely needs confirmation.

@klutzy
Copy link
Contributor Author

klutzy commented Nov 25, 2013

@cmr I just realized I've built it with -Z no-opt :p Sorry, nevermind!
Anyway it seems to segfault if it is built with --cfg rtopt. I don't know why.

@alexcrichton
Copy link
Member

I'm curious whether weak symbols work on mingw-w64 or whether they continue to not work. I'm not a fan of doing the lookup-by-maybe-a-leading-underscore-or-not method.

With investigation into that, r=me

bors added a commit that referenced this pull request Nov 26, 2013
This patchset fixes some parts broken on Win64.

This also adds `--disable-pthreads` flags to llvm on mingw-w64 archs (both 32-bit and 64-bit, not mingw) due to bad performance. See #8996 for discussion.
@bors bors closed this Nov 26, 2013
@bors bors merged commit 472b618 into rust-lang:master Nov 26, 2013
@klutzy klutzy deleted the win-fixes branch November 26, 2013 13:09
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 23, 2023
… r=Alexendoo

Standardize lint formulation

Fixes rust-lang#10631

changelog: Standardize a very frequent lint formulation which had variations
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 14, 2023
"try this" -> "try"

Current help messages contain a mix of "try", "try this", and one "try this instead". In the spirit of rust-lang#10631, this PR adopts the first, as it is the most concise.

It also updates the `lint_message_conventions` test to catch cases of "try this".

(Aside: rust-lang#10120 unfairly contained multiple changes in one PR. I am trying to break that PR up into smaller pieces.)

changelog: Make help messages more concise ("try this" -> "try").
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.

4 participants