<p dir="ltr"><br>
> tl;dr Is there documentation somewhere on how to build LLVM/Clang/LLDB<br>
> without using libstdc and libstdc++?</p>
<p dir="ltr">AFAIK the usual way of doing this is to pass the CXX and CC environment variables to CMake or the configure script.</p>
<p dir="ltr">CMake<br>
======</p>
<p dir="ltr">$ mkdir build<br>
$ cd build<br>
$ CXX=/path/to/new/g++ CC=/path/to/new/gcc cmake /path/to/llvm/sourcetree<br>
$ make -j<number></p>
<p dir="ltr">Configure script/make<br>
===================</p>
<p dir="ltr">$ mkdir build<br>
$ cd build<br>
$ CXX=/path/to/new/g++ CC=/path/to/new/gcc /path/to/llvm/sourcetree/configure<br>
$ make -j<number></p>