[cfe-dev] [LLVMdev] PSA: clang-cl can self host now!

Zachary Turner zturner at google.com
Wed Feb 25 20:12:33 PST 2015


I believe this may actually be possible, but honestly I haven't tested it.

But maybe you can be a guinea pig :)  If you've installed the LLVM
toolchain (so that it shows up as an option in Visual Studio's project
settings), then you can run cmake -G "Visual Studio 12" -T LLVM-vs2013

Source:
http://www.cmake.org/Bug/bug_relationship_graph.php?bug_id=14458&graph=relation

On Wed, Feb 25, 2015 at 7:50 PM Francois Pichet <pichet2000 at gmail.com>
wrote:

> On Wed, Feb 25, 2015 at 3:48 PM, Zachary Turner <zturner at google.com>
> wrote:
>
>> Over the weekend I had a random urge to make clang-cl be able to self
>> host.  As of r230539, this should now be possible.  Steps to try this out:
>>
>> 1) Run vcvarsall.bat, same as you would for an MSVC hosted build.
>> 2) set CC=CXX=clang-cl  (make sure it's in your path
>> 3) Run CMake as you normally would, no special flags needed.
>>
>
> Here I suppose you mean run CMake using -G Ninja right? (It is not
> possible to self-host using clang-cl.exe from within MSVC right?)
> (Because I normally run CMake to generate MSVC projects)
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150226/cb1d376a/attachment.html>


More information about the cfe-dev mailing list