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 @@ -291,6 +291,8 @@ skip-test-watchos-host
291
291
292
292
# This is a mixin preset which builds and smoke-tests lldb.
293
293
[preset: lldb-smoketest,tools=RA]
294
+ # Build libcxx for tests
295
+ libcxx
294
296
# Build LLDB
295
297
lldb
296
298
@@ -301,6 +303,8 @@ lldb-test-swift-only
301
303
lldb-assertions
302
304
303
305
[preset: lldb-pull-request]
306
+ # Build libcxx for tests
307
+ libcxx
304
308
lldb
305
309
lit-args =-v
306
310
Original file line number Diff line number Diff line change @@ -1709,7 +1709,7 @@ for host in "${ALL_HOSTS[@]}"; do
1709
1709
libcxx)
1710
1710
build_targets=(cxx)
1711
1711
cmake_options=(
1712
- -DLLVM_ENABLE_RUNTIMES=" libcxx" -DLIBCXX_INSTALL_LIBRARY=OFF
1712
+ -DLLVM_ENABLE_RUNTIMES=" libcxx;libcxxabi " -DLIBCXX_INSTALL_LIBRARY=OFF
1713
1713
" ${cmake_options[@]} "
1714
1714
" ${llvm_cmake_options[@]} "
1715
1715
)
@@ -2126,6 +2126,7 @@ for host in "${ALL_HOSTS[@]}"; do
2126
2126
cmark_build_dir=$( build_directory ${host} cmark)
2127
2127
lldb_build_dir=$( build_directory ${host} lldb)
2128
2128
swift_build_dir=$( build_directory ${host} swift)
2129
+ libcxx_build_dir=$( build_directory ${host} libcxx)
2129
2130
2130
2131
# Add any lldb extra cmake arguments here.
2131
2132
@@ -2205,6 +2206,7 @@ for host in "${ALL_HOSTS[@]}"; do
2205
2206
-DLLDB_ENABLE_LZMA=OFF
2206
2207
-DLLDB_ENABLE_LUA=OFF
2207
2208
-DLLDB_INCLUDE_TESTS:BOOL=$( false_true ${BUILD_TOOLCHAIN_ONLY} )
2209
+ -DLLDB_TEST_LIBCXX_ROOT_DIR:STRING=" ${libcxx_build_dir} "
2208
2210
-DLLDB_TEST_USER_ARGS=" ${DOTEST_ARGS} "
2209
2211
)
2210
2212
@@ -2650,10 +2652,6 @@ for host in "${ALL_HOSTS[@]}"; do
2650
2652
call env " ${EXTRA_DISTCC_OPTIONS[@]} " " ${CMAKE} " " ${cmake_options[@]} " " ${EXTRA_CMAKE_OPTIONS[@]} " " ${source_dir} "
2651
2653
fi
2652
2654
2653
- if [[ " ${product} " == " libcxx" ]]; then
2654
- continue
2655
- fi
2656
-
2657
2655
# Build.
2658
2656
if [[ $( not ${SKIP_BUILD} ) ]]; then
2659
2657
if [[ " ${CMAKE_GENERATOR} " == " Xcode" ]] ; then
You can’t perform that action at this time.
0 commit comments