[all-commits] [llvm/llvm-project] 389955: [lldb] add check for libcxx runtime
Richard Howell via All-commits
all-commits at lists.llvm.org
Mon Feb 22 17:55:47 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 389955c69a3b9f418e3f39694c94b4519322dd42
https://github.com/llvm/llvm-project/commit/389955c69a3b9f418e3f39694c94b4519322dd42
Author: Richard Howell <rhow at fb.com>
Date: 2021-02-22 (Mon, 22 Feb 2021)
Changed paths:
M lldb/test/CMakeLists.txt
Log Message:
-----------
[lldb] add check for libcxx runtime
When enabling LLDB tests with `LLVM_ENABLE_RUNTIMES=libcxx` CMake will
fail with:
```
LLDB test suite requires libc++, but it is currently disabled.
```
The issue is that the targets in LLVM_ENABLE_RUNTIMES are configured
after the targets in LLVM_ENABLE_PROJECTS, so at this point the check
for the `cxx` target will fail. CMake will add a dependency for a target
that does not exist yet however, so by first checking for `libcxx` in
LLVM_ENABLE_RUNTIMES we ensure that the `cxx` target will be present at
build time.
Tested with:
```
% cmake -G Ninja \
-C ~/local/llvm-project/lldb/cmake/caches/Apple-lldb-macOS.cmake \
-DLLVM_ENABLE_PROJECTS="clang;lldb" -DLLVM_ENABLE_RUNTIMES="libcxx" \
-DLIBCXX_INCLUDE_TESTS=NO ~/local/llvm-project/llvm
% ninja check-lldb
```
Reviewed By: smeenai, JDevlieghere
Differential Revision: https://reviews.llvm.org/D97227
More information about the All-commits
mailing list