Skip to content

Commit cfb1035

Browse files
committed
[ci] add dependencies for lldb python binding tests
Add correct configuration and dependencies for LLDB testing which is actually relevant for clang changes.
1 parent ae4da18 commit cfb1035

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.ci/monolithic-linux.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,13 @@ pip install -q -r "${MONOREPO_ROOT}"/.ci/requirements.txt
6363
export LLVM_SYMBOLIZER_PATH=`which llvm-symbolizer`
6464
[[ ! -f "${LLVM_SYMBOLIZER_PATH}" ]] && echo "llvm-symbolizer not found!"
6565

66+
# Set up all runtimes either way. libcxx is a dependency of LLDB.
67+
# If it ends up being unused, not much harm.
6668
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
6769
-D LLVM_ENABLE_PROJECTS="${projects}" \
70+
-D LLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" \
6871
-G Ninja \
72+
-D CMAKE_PREFIX_PATH="${HOME}/.local" \
6973
-D CMAKE_BUILD_TYPE=Release \
7074
-D LLVM_ENABLE_ASSERTIONS=ON \
7175
-D LLVM_BUILD_EXAMPLES=ON \
@@ -74,7 +78,10 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
7478
-D LLVM_ENABLE_LLD=ON \
7579
-D CMAKE_CXX_FLAGS=-gmlt \
7680
-D LLVM_CCACHE_BUILD=ON \
81+
-D LIBCXX_CXX_ABI=libcxxabi \
7782
-D MLIR_ENABLE_BINDINGS_PYTHON=ON \
83+
-D LLDB_ENABLE_PYTHON=ON \
84+
-D LLDB_ENFORCE_STRICT_TEST_REQUIREMENTS=ON \
7885
-D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}"
7986

8087
echo "--- ninja"

lldb/test/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ psutil>=5.9.4
55
# See llvm.org/pr22274.
66
pexpect>=4.9.0; sys_platform != 'win32'
77
packaging
8+
# Required for python tests
9+
swig

0 commit comments

Comments
 (0)