complie clang with clang

Hi.

I'm trying to complie clang with clang.

Then I found the site.

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.

Best Regards.

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.
c++ - How to build clang with clang? - Stack Overflow

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.

Hi.

Thank you for the replay.

I could show the command lines with the following steps.

$ CXX=clang++ CC=clang cmake -G Ninja ../llvm
$ ninja-build -v

But I want to do this with make.

Could you tell me how?

Rest Regards.

Duncan P. N. Exon Smith wrote:

I think this should do it:

$ CXX=clang++ CC=clang cmake -G "Unix Makefiles" ../llvm
$ VERBOSE=1 make -j8

Hi.

Thank you for the reply.

I was able to show the command lines with your method.

Best Regards.
Masaru

Hans Wennborg wrote: