Comments (6)
@dutow , Any comment?
Thank You.
from ccf.
Hello
Sorry for the late reply. Regarding the issue you linked, I had no time to work on it on the summer - I hope to finish it in a few weeks.
For your 3 use cases:
The first should work - there is a separate toolchain setting you should pass to cmake: cmake .. -TLLVM-vs2014 -G"Visual Studio 14 2015"
For your second, I usually use it after loading the visual studio variables - you can load them in any command prompt / script easily, for example:
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall" amd64
Without this, the main issue is with the linker - but I didn't investigate the issue much, as loading the variables is easy.
3 - As far as I know, that's not possible right now, not without some changes in the mingw generator, because of the ABI difference you mentioned.
from ccf.
Hi,
Will (1) work if I have MSVC 2017?
Namely can I do cmake -G"Visual Studio 14 2015" -T"LLVM-vs2014" ..
even if I only have MSVC 2017 installed?
Regarding (3), Is there a way to prevent CMake from checking the ABI and just treat CLang as it would treat GCC just with different command (Something to set the driver of Clang to GCC)?
from ccf.
@dutow , Any updates regarding Clang on Windows with Cmake?
Thank You.
from ccf.
@RoyiAvital with 3.15, the clang++/clang format works on windows too. E.g. CC=clang CXX=clang++ cmake -G Ninja works on windows.
With 3.16, it will work even without vcvarsall (assuming the limited llvm-rc is good for your project), and for clang-cl too. You can even do this with 3.15, if you specify the RC compiler and linker manually.
For your (1) and (3) use cases, I have no updates / I'm still not using those - so if you have any issues with them, you probably should open a bug on the cmake gitlab.
Edit: but based on the cmake code, (3) should work?
from ccf.
We have Clang with:
clang version 8.0.1 (tags/RELEASE_801/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: D:\Applications\Programming\MSYS64\mingw64\bin
And
clang version 8.0.1 (tags/RELEASE_801/final)
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: D:\Applications\Programming\MSYS64\mingw64\bin
Will we have support for both?
from ccf.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccf.