-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add Windows patches for LLVM 3.9 #19138
Conversation
threads patch was rebased on rust's llvm fork rust-lang/llvm@d1cc489 cygwin build patch is from llvm-mirror/llvm@9f79578 in cross-compile, a subset of llvm gets built for the native build system
Note to self: should look into whether we need https://github.com/cygwinports/llvm/blob/598b7d8c704f2c8e59daddde1900318aef9eed72/0003-Fix-RuntimeDyldCOFFI386-to-handle-relocations-with-a.patch |
We don't need it, as we don't use that code path. Could be interesting to look into though at some point, now that we know that code path might work. |
I tried to look into this:
Debug on Win64
The lowering for that is In lib/Target/X86/X86ISelLowering.cpp around line 1994, which is guarded by a check to Win64:
|
GCC 5.4 will most likely still miscompile LLVM (even 3.7) on win32. The GCC 4.9 build from cygwin did not need libwinpthread, but it's not currently easy to get. Probably need to use the cygwin time machine to get the past versions. |
Thanks for the hint with cygwin time machine ( |
Same problem with 4.9.2
|
@tkelman The |
I took it straight from Rust's fork, didn't think too much about it. |
Restarted appveyor for this. Log is backed up here https://gist.github.com/vchuravy/4b995598e033574c45b7b9f83c4333b1 |
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.
From my perspective this is ready to be merged
I still haven't looked much at the threads patch, but I think the old copy was doing |
It seems to remove |
Fixes for LLVM 3.9 and Win64
part of #19123
threads patch was rebased on rust's llvm fork
rust-lang/llvm@d1cc489
cygwin build patch is from llvm-mirror/llvm@9f79578
in cross-compile, a subset of llvm gets built for the native build system
This crashes at the start of bootstrap on both win64:
and win32: