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. 4) There is no 4, that's it! Currently LLD will not build, so if you have cloned LLD into your repo you will need to not build it. llvm, clang, and lldb should build though, so you can run "ninja lldb clang" for example and produce a working build. I've been told that a fix for LLD is forthcoming sometime today or tomorrow. Feel free to post any issues you encounter. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150225/fcacad9d/attachment.html>
Nice. This should probably go to on the release notes :-) On 25 February 2015 at 15:48, 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. > 4) There is no 4, that's it! > > Currently LLD will not build, so if you have cloned LLD into your repo you > will need to not build it. llvm, clang, and lldb should build though, so > you can run "ninja lldb clang" for example and produce a working build. > I've been told that a fix for LLD is forthcoming sometime today or tomorrow. > > Feel free to post any issues you encounter. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Done: http://llvm.org/viewvc/llvm-project/cfe/branches/release_36/docs/ReleaseNotes.rst?view=markup#l113 We've been technically able to self-host for a some time, but now it's simple as 'CC=clang-cl CXX=clang-cl cmake'. =D On Wed, Feb 25, 2015 at 3:00 PM, Rafael EspĂndola < rafael.espindola at gmail.com> wrote:> Nice. This should probably go to on the release notes :-) > > > On 25 February 2015 at 15:48, 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. > > 4) There is no 4, that's it! > > > > Currently LLD will not build, so if you have cloned LLD into your repo > you > > will need to not build it. llvm, clang, and lldb should build though, so > > you can run "ninja lldb clang" for example and produce a working build. > > I've been told that a fix for LLD is forthcoming sometime today or > tomorrow. > > > > Feel free to post any issues you encounter. > > > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150225/ff254148/attachment.html>
That's great! Especially with Andy's forthcoming EH Win64 patch. 2015-02-25 22:48 GMT+02:00 Zachary Turner <zturner at google.com>:> 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. > 4) There is no 4, that's it! > > Currently LLD will not build, so if you have cloned LLD into your repo you > will need to not build it. llvm, clang, and lldb should build though, so > you can run "ninja lldb clang" for example and produce a working build. > I've been told that a fix for LLD is forthcoming sometime today or tomorrow. > > Feel free to post any issues you encounter. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150226/ff52760e/attachment.html>
On Wed, Feb 25, 2015 at 12: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. > 4) There is no 4, that's it! > > Currently LLD will not build, so if you have cloned LLD into your repo you > will need to not build it. llvm, clang, and lldb should build though, so > you can run "ninja lldb clang" for example and produce a working build. > I've been told that a fix for LLD is forthcoming sometime today or tomorrow. >Hopefully this is now fixed with r230568.> > Feel free to post any issues you encounter. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150225/1165022d/attachment.html>
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/llvm-dev/attachments/20150225/6b08af67/attachment.html>
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>