Skip to content

Commit deb54f1

Browse files
committedDec 18, 2018
[cmake] Make libcxx(abi) a dependency when building in-tree clang for macOS
As discussed on IRC this morning, when building an in-tree clang for testing we have to have libcxx and libcxxabi checked out. This is a common pitfall. Not only are the resulting failures non-obvious, they only manifest when running the test suite, *after* building lldb and clang. By making them a hard dependency (on macOS) we fail earlier with a more useful error message. Differential revision: https://reviews.llvm.org/D55837 llvm-svn: 349539
1 parent 9732718 commit deb54f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎lldb/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ if(LLDB_INCLUDE_TESTS)
157157

158158
if(TARGET clang)
159159
list(APPEND LLDB_TEST_DEPS clang)
160+
if(APPLE)
161+
list(APPEND LLDB_TEST_DEPS cxx)
162+
list(APPEND LLDB_TEST_DEPS cxxabi)
163+
endif()
160164
endif()
161165

162166
if(TARGET dsymutil)

0 commit comments

Comments
 (0)
Please sign in to comment.