-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
[Windows] Enable building rustc with "pthreads" flavor of mingw. #40805
Conversation
r+ from me! Let's see if we can land #40524 though to rebase out the original commit (that PR has had some fixes/revisions as well) |
er, land that first though* |
I think the appveyor config still needs to be adjusted -- either to remove the custom mingw downloads or to replace the mingw downloads with the pthread versions (to make us independent from changes to the appveyor build environment). |
Ideally I'd actually prefer if we didn't have to change the toolchain because that would signify a large breaking change that'd be much more difficult to deal with. I think @vadimcn said though that the dll/staticlib were present in both toolchains, they'd just be ignored on the win32 threading one I think. |
Mh, wasn't the whole point of this that we could switch to the pthread toolchains, because they implement |
Ah true yes, we'll want to switch compiling the compiler to the pthreads toolchain. I'd like to see if this lands alone though because we should continue to be able to work with a win32 toolchain. Maybe one day we can add a bot for that but in the meantime we just need to make sure there's a transition path for win32 toolchain users to the pthread toolchain. At the very least we can land the pthread compiler change for rustc in the llvm 4.0 PR, but I'd also be fine with a separate pr (after this one) to do that change independently. |
☔ The latest upstream changes (presumably #40524) made this pull request unmergeable. Please resolve the merge conflicts. |
Make sure we link to the static libpthread, so that compiled Rust binaries do not depend on winpthread1.dll.
@bors r=alexcrichton |
📌 Commit ad3f6e0 has been approved by |
⌛ Testing commit ad3f6e0 with merge 273fcd1... |
💔 Test failed - status-appveyor |
… On Fri, Mar 31, 2017 at 8:09 AM, bors ***@***.***> wrote:
💔 Test failed - status-appveyor
<https://ci.appveyor.com/project/rust-lang/rust/build/1.0.2653>
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#40805 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAD95Mlgt9vibjc4ZysJM0iJIlVXlDKuks5rrQkwgaJpZM4Mo2jd>
.
|
⌛ Testing commit ad3f6e0 with merge c374e2f... |
💔 Test failed - status-travis |
… On Sat, Apr 1, 2017 at 6:46 AM, bors ***@***.***> wrote:
💔 Test failed - status-travis
<https://travis-ci.org/rust-lang/rust/builds/217503973>
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#40805 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAD95EpRLXJ_c9mNfzpqd3tzc1zuzj_lks5rrkcSgaJpZM4Mo2jd>
.
|
⌛ Testing commit ad3f6e0 with merge a3d82bd... |
@@ -259,4 +259,10 @@ fn main() { | |||
println!("cargo:rustc-link-lib={}", stdcppname); | |||
} | |||
} | |||
|
|||
// LLVM requires symbols from this library, but apparently they're not printeds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/printeds/printed/
💔 Test failed - status-travis |
@bors: retry
|
⌛ Testing commit ad3f6e0 with merge 597944d... |
💔 Test failed - status-travis |
Another sccache failure? |
Looks like it :(
|
@bors: retry |
⌛ Testing commit ad3f6e0 with merge cd6f950... |
💔 Test failed - status-travis |
… On Sun, Apr 2, 2017 at 4:30 AM, bors ***@***.***> wrote:
💔 Test failed - status-travis
<https://travis-ci.org/rust-lang/rust/builds/217730842>
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#40805 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAD95Eifog6KoDeWaTdW26PK1b920BFnks5rr3ivgaJpZM4Mo2jd>
.
|
⌛ Testing commit ad3f6e0 with merge 49133bb... |
💔 Test failed - status-appveyor |
[Windows] Enable building rustc with "pthreads" flavor of mingw. Tested on mingw-w64 packaged with msys2. r? @alexcrichton cc #40123
☀️ Test successful - status-appveyor, status-travis |
This PR caused a few regression such as #41416 and #41607 so tagging relnotes at least. We haven't reverted yet and if we end up not doing so we'll want to mention this in compatibility nodes, namely:
|
Tested on mingw-w64 packaged with msys2.
r? @alexcrichton
cc #40123