Skip to content

Commit

Permalink
[lldb] Make compiler-rt an optional LLDB test dependency
Browse files Browse the repository at this point in the history
Make compiler-rt an LLDB test dependency if the corresponding target
exists. Similarly we already have `asan` and `tsan` as optional test
dependencies, but we need the `compiler-rt` target when enabling
compiler-rt trough LLVM_ENABLE_RUNTIMES.
  • Loading branch information
JDevlieghere committed Jul 25, 2022
1 parent 00060a7 commit 52465dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lldb/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ if(TARGET clang)
add_lldb_test_dependency(tsan)
endif()

if (TARGET compiler-rt)
add_lldb_test_dependency(compiler-rt)
endif()

if(APPLE AND NOT LLVM_TARGET_IS_CROSSCOMPILE_HOST)
# FIXME: Standalone builds should import the cxx target as well.
if(LLDB_BUILT_STANDALONE)
Expand Down

0 comments on commit 52465dc

Please sign in to comment.