CMake can also generate Visual Studio project/solution files. The documentation recommends the CMake GUI:
however you can also run CMake from the CMD shell if you prefer. I have
cmake –G "Visual Studio 14 Win64" –Thost=x64 ..\llvm-project\llvm
in my script, running on a 64-bit Windows PC with Visual Studio 2015 (aka version 14) installed.
I am unfamiliar with how the Visual Studio integration works, but I suspect you need to do the above and actually build the compiler first.
From: llvm-dev [mailto:[hidden email]]
On Behalf Of Marcus Johnson via llvm-dev
Sent: Saturday, June 23, 2018 7:10 AM
To: [hidden email]
Subject: [llvm-dev] Build files
How is the LLVM toolchain built for Windows?
I'm working on VS integration.
Like, in Xcode, the actual *.xctoolchain bundle is built using the regular cmake files, plus using the cmake build script in tools/xcode-toolchain, what is the windows equivalent?
is it literally just the stuff in tools/msbuild, or is there more to it than that?
Like I said, I don't know how the integration works. Very very few people have ever touched that stuff.
You could try asking the list again, with a subject line that was more descriptive; that might get the attention of people who could answer your question.
Sorry I can't be more help.
From: Marcus Johnson [mailto:[hidden email]]
Sent: Monday, June 25, 2018 2:26 PM
To: Robinson, Paul
Subject: Re: [llvm-dev] Build files
That's not at all what I meant dude.
I'm asking about building Clang (and friends) as a VS "ToolSet", that can be integrated into VS.
that way Clang can be used as the compiler in VS.
The old integration files in "llvm/tools/msbuild" don't work with VS2017, I've updated them locally, but I want to go further.
On llvm.org, there's binary releases for Windows, I'd like to change the folder layout (/bin, /usr, etc) to match MSVC's, and to actually install right into the Visual Studio folder.
then we could set the PATH to the correct folder that way Clang is available from cmd.exe.
tl;dr I'm talking about complete integration.