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 Clang with ninja backend not supported #4232
Comments
Analysing this failure a bit:
Clang appears to be using MSVC's I thought this might be fixable with |
I don't think you can force it to use the unix style linker when using linking via the clang msvc driver; the clang msvc mode driver always passes linker options in This confusion is probably easiest avoided by using the same codepaths for clang in msvc mode as with regular msvc, and use the |
Yeah. Of course, when I wrote this I was assuming that
Is Unfortunately, at the moment, meson assumes a 1:1 correspondence between compiler and linker argument types, so getting this to work is going to involve some effort. And given what you wrote in #3670, I guess we could get either behaviour on Windows, depending on how clang was built (MSVC mode or MinGW mode)? |
See PR #4250 |
You hit the same "msvc mode driver" both if you run
Exactly - what the default triple of your clang is, if nothing is specified, depends on the configuration. ( |
another problem is that when building with clang.exe on windows (with default target x86_64-pc-windows-msvc) clang does not pass the winlibs linker args |
As an alternative to parsing |
So, was this one fixed by #4250 ? |
Only partially. Using Fixing |
Hmm... this is possibly a mistake, or at least not very helpful with the current state of things (we have a fixed search order ['cl', 'cc', 'gcc', 'clang', 'clang-cl'], where I just added clang-cl to the end as part of #4250. (see also #4498) |
Oh. Or you use LLVM 6, which installs “A moving target is easier to miss" |
Still grinding away at this. #4573 adds support for clang with the *-windows-gnu target (another thing I was assuming would 'just work' 😞 ) |
So I should define |
Only |
The problem is with |
Were there any updates regarding this? |
Progress is slow, I'm afraid. I believe that PR #5681 should remove the architectural limitation which is the major blocking issue here. |
I'm planning on working on getting windows sorted in that PR today. |
So the #5681 is merged now, is there anything else that prevents this from getting this fixed? |
I'll go ahead and close this, we can reopen or open new bugs if there's more work to do. |
Trying to run test suite with clang compiler and ninja backend on Windows has various test failures (See this appveyor CI run)
See also #4105 (comment), #3670 (comment)
The text was updated successfully, but these errors were encountered: