Skip to content

Commit b4776b8

Browse files
authored
[libc++][CI] Tests LLDB libc++ data formatters. (#88312)
This enables testing of the LLDB libc++ specific data formatters. This is enabled in the bootstrap build since building LLDB requires Clang and this is quite expensive. Adding this test changes the build time from 31 to 34 minutes.
1 parent 8927ac8 commit b4776b8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

libcxx/utils/ci/run-buildbot

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,18 +368,22 @@ bootstrapping-build)
368368
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \
369369
-DCMAKE_BUILD_TYPE=Release \
370370
-DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
371-
-DLLVM_ENABLE_PROJECTS="clang" \
371+
-DLLVM_ENABLE_PROJECTS="clang;lldb" \
372372
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" \
373373
-DLLVM_RUNTIME_TARGETS="$(${CXX} --print-target-triple)" \
374+
-DLLVM_HOST_TRIPLE="$(${CXX} --print-target-triple)" \
374375
-DLLVM_TARGETS_TO_BUILD="host" \
375376
-DRUNTIMES_BUILD_ALLOW_DARWIN=ON \
376377
-DLLVM_ENABLE_ASSERTIONS=ON \
377378
-DLLVM_LIT_ARGS="-sv --xunit-xml-output test-results.xml --timeout=1500 --time-tests"
378379

379-
echo "+++ Running the libc++ and libc++abi tests"
380+
echo "+++ Running the LLDB libc++ data formatter tests"
381+
${NINJA} -vC "${BUILD_DIR}" check-lldb-api-functionalities-data-formatter-data-formatter-stl-libcxx
382+
383+
echo "--- Running the libc++ and libc++abi tests"
380384
${NINJA} -vC "${BUILD_DIR}" check-runtimes
381385

382-
echo "--- Installing libc++ and libc++abi to a fake location"
386+
echo "+++ Installing libc++ and libc++abi to a fake location"
383387
${NINJA} -vC "${BUILD_DIR}" install-runtimes
384388

385389
ccache -s

lldb/packages/Python/lldbsuite/test/lldbtest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,8 @@ def setUpCommands(cls):
751751
"settings set symbols.enable-external-lookup false",
752752
# Inherit the TCC permissions from the inferior's parent.
753753
"settings set target.inherit-tcc true",
754+
# Based on https://discourse.llvm.org/t/running-lldb-in-a-container/76801/4
755+
"settings set target.disable-aslr false",
754756
# Kill rather than detach from the inferior if something goes wrong.
755757
"settings set target.detach-on-error false",
756758
# Disable fix-its by default so that incorrect expressions in tests don't

0 commit comments

Comments
 (0)