compiling clang with clang

What's the proper way to instruct clang to build itself (assuming that
clang must already be built of course)?

There are several options using ./configure, I'm not sure which is the
best approach:
--with-built-clang
--with-clang=/path/to/existing/clang
CC=clang CXX=clang

What's the proper way to instruct clang to build itself (assuming that
clang must already be built of course)?

There are several options using ./configure, I'm not sure which is the
best approach:
--with-built-clang
--with-clang=/path/to/existing/clang

These are for enabling testing with Clang.

CC=clang CXX=clang

You want

  CC=clang CXX=clang++

  - Doug

Thanks!

If I use cmake,

–with-built-clang
–with-clang=/path/to/existing/clang

what is it to replace them?

If I use cmake,

–with-built-clang
–with-clang=/path/to/existing/clang

what is it to replace them?

I don’t know if those tests can even be run from cmake.