[libcxx-dev] [llvm-dev] [RFC] A vision for building the runtimes

Siva Chandra via libcxx-dev libcxx-dev at lists.llvm.org
Fri Oct 23 11:19:34 PDT 2020


On Thu, Oct 22, 2020 at 3:31 PM Louis Dionne via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> [1] If you're wondering what that would look like:
>
>     $ mkdir <monorepo-root>/build
>     $ cd <monorepo-root>/build
>     $ cmake ../runtimes -DLLVM_ENABLE_PROJECTS="libcxx;libcxxabi;libunwind" \
>         -C <path-to-your-cache-if-desired> \
>         -DLIBCXX_ENABLE_XXX \
>         -DLIBCXXABI_ENABLE_XXX \
>         <other options>
>     $ ninja install-cxx install-cxxabi

You mentioned elsewhere that you are only focussing on libc++,
libc++abi and libunwind for now. Lets say libc joins this scheme
sometime in future. Can one do:

$> cmake ../runtimes
-DLLVM_ENABLE_PROJECTS="llvm;clang;clang-tools-extra;libc" <...>

The libc build currently needs llvm in all modes. For linting, we need
clang and clang-tools-extra.


More information about the libcxx-dev mailing list