Skip to content

Commit 1c4ff51

Browse files
authored
[ci] add dependencies for lldb python binding tests (#136158)
1 parent e2944b5 commit 1c4ff51

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
@@ -67,9 +67,13 @@ pip install -q -r "${MONOREPO_ROOT}"/.ci/requirements.txt
6767
export LLVM_SYMBOLIZER_PATH=`which llvm-symbolizer`
6868
[[ ! -f "${LLVM_SYMBOLIZER_PATH}" ]] && echo "llvm-symbolizer not found!"
6969

70+
# Set up all runtimes either way. libcxx is a dependency of LLDB.
71+
# It will not be built unless it is used.
7072
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
7173
-D LLVM_ENABLE_PROJECTS="${projects}" \
74+
-D LLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" \
7275
-G Ninja \
76+
-D CMAKE_PREFIX_PATH="${HOME}/.local" \
7377
-D CMAKE_BUILD_TYPE=Release \
7478
-D LLVM_ENABLE_ASSERTIONS=ON \
7579
-D LLVM_BUILD_EXAMPLES=ON \
@@ -78,7 +82,10 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
7882
-D LLVM_ENABLE_LLD=ON \
7983
-D CMAKE_CXX_FLAGS=-gmlt \
8084
-D LLVM_CCACHE_BUILD=ON \
85+
-D LIBCXX_CXX_ABI=libcxxabi \
8186
-D MLIR_ENABLE_BINDINGS_PYTHON=ON \
87+
-D LLDB_ENABLE_PYTHON=ON \
88+
-D LLDB_ENFORCE_STRICT_TEST_REQUIREMENTS=ON \
8289
-D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}"
8390

8491
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>=4.0.0

0 commit comments

Comments
 (0)