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

Reid Kleckner rnk at google.com
Wed Feb 25 20:15:48 PST 2015


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)
>

We've always tested with ninja. Someone should test with VS. clang-cl works
with standard IDE-generated VS projects using MSBuild, though.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150225/d860df6c/attachment.html>


More information about the llvm-dev mailing list