[libcxx-commits] [PATCH] D107799: [CMake] Enable LLVM_ENABLE_PER_TARGET_RUNTIME_DIR by default on Linux
Fangrui Song via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 9 23:34:13 PDT 2022
MaskRay added a comment.
In D107799#3569323 <https://reviews.llvm.org/D107799#3569323>, @glandium wrote:
> Minimal reproducer:
>
> - `git checkout 311f7839602344ca347816146edb68c0ffaaa060`
> - `cmake llvm -B obj -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/llvm/stage1 -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_RUNTIMES="compiler-rt;libcxx;libcxxabi"`
> - `ninja -C obj install`
> - `cmake llvm -B obj2 -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang" -DCMAKE_C_COMPILER=/tmp/llvm/stage1/bin/clang`
>
> The key to the failure is `$clang/lib/x86_64-unknown-linux-gnu` existing (even empty), which happens when enabling libcxx/libcxxabi.
This instructions work for me on a Debian testing amd64 machine.
I added `-DCMAKE_CXX_COMPILER=/tmp/llvm/stage1/bin/clang++` for the `-B obj2` command line, though.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107799/new/
https://reviews.llvm.org/D107799
More information about the libcxx-commits
mailing list