[cfe-users] complie clang with clang

Duncan P. N. Exon Smith via cfe-users cfe-users at lists.llvm.org
Tue Mar 21 10:56:39 PDT 2017


> On 2017-Mar-21, at 06:51, Masaru Tsuchiyama via cfe-users <cfe-users at lists.llvm.org> wrote:
> 
> Hi.
> 
> I'm trying to complie clang with clang.

This should be fairly well documented.  Try these:
  http://clang.llvm.org/get_started.html
  http://llvm.org/docs/CMake.html
  http://llvm.org/docs/AdvancedBuilds.html

It sounds like you're looking for "bootstrap" builds, which is the first thing in the third link.

> Then I found the site.
> http://stackoverflow.com/questions/12479458/how-to-build-clang-with-clang
> 
> I want to know whether clang is surely used when compiling clang.
> I want it to display command line of clang compilation.
> 
> Is there any method to show the exact command line when compiling it.

This depends on your build system.  If you're using Ninja, you can add "-v" to the command-line to see what commands are being called.

> Best Regards.
> 
> -- 
> Masaru Tsuchiyama <m.tmatma at gmail.com>
> _______________________________________________
> cfe-users mailing list
> cfe-users at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users



More information about the cfe-users mailing list