File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,8 @@ skip-test-watchos-host
289289
290290# This is a mixin preset which builds and smoke-tests lldb.
291291[preset: lldb-smoketest,tools=RA]
292+ # Build libcxx for tests
293+ libcxx
292294# Build LLDB
293295lldb
294296
@@ -299,6 +301,8 @@ lldb-test-swift-only
299301lldb-assertions
300302
301303[preset: lldb-pull-request]
304+ # Build libcxx for tests
305+ libcxx
302306lldb
303307lit-args =-v
304308
Original file line number Diff line number Diff line change @@ -1709,7 +1709,7 @@ for host in "${ALL_HOSTS[@]}"; do
17091709 libcxx)
17101710 build_targets=(cxx)
17111711 cmake_options=(
1712- -DLLVM_ENABLE_RUNTIMES=" libcxx" -DLIBCXX_INSTALL_LIBRARY=OFF
1712+ -DLLVM_ENABLE_RUNTIMES=" libcxx;libcxxabi " -DLIBCXX_INSTALL_LIBRARY=OFF
17131713 " ${cmake_options[@]} "
17141714 " ${llvm_cmake_options[@]} "
17151715 )
@@ -2126,6 +2126,7 @@ for host in "${ALL_HOSTS[@]}"; do
21262126 cmark_build_dir=$( build_directory ${host} cmark)
21272127 lldb_build_dir=$( build_directory ${host} lldb)
21282128 swift_build_dir=$( build_directory ${host} swift)
2129+ libcxx_build_dir=$( build_directory ${host} libcxx)
21292130
21302131 # Add any lldb extra cmake arguments here.
21312132
@@ -2205,6 +2206,7 @@ for host in "${ALL_HOSTS[@]}"; do
22052206 -DLLDB_ENABLE_LZMA=OFF
22062207 -DLLDB_ENABLE_LUA=OFF
22072208 -DLLDB_INCLUDE_TESTS:BOOL=$( false_true ${BUILD_TOOLCHAIN_ONLY} )
2209+ -DLLDB_TEST_LIBCXX_ROOT_DIR:STRING=" ${libcxx_build_dir} "
22082210 -DLLDB_TEST_USER_ARGS=" ${DOTEST_ARGS} "
22092211 )
22102212
@@ -2650,10 +2652,6 @@ for host in "${ALL_HOSTS[@]}"; do
26502652 call env " ${EXTRA_DISTCC_OPTIONS[@]} " " ${CMAKE} " " ${cmake_options[@]} " " ${EXTRA_CMAKE_OPTIONS[@]} " " ${source_dir} "
26512653 fi
26522654
2653- if [[ " ${product} " == " libcxx" ]]; then
2654- continue
2655- fi
2656-
26572655 # Build.
26582656 if [[ $( not ${SKIP_BUILD} ) ]]; then
26592657 if [[ " ${CMAKE_GENERATOR} " == " Xcode" ]] ; then
You can’t perform that action at this time.
0 commit comments