Skip to content

Commit 048ec5e

Browse files
committed
Enable LLDB debug info tests on CI
1 parent 105354d commit 048ec5e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/ci/docker/host-x86_64/x86_64-gnu-llvm-19/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1616
cmake \
1717
sudo \
1818
gdb \
19+
lldb-19 \
1920
llvm-19-tools \
2021
llvm-19-dev \
2122
libedit-dev \
@@ -33,6 +34,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3334
libmpc-dev \
3435
&& rm -rf /var/lib/apt/lists/*
3536

37+
# The official LLDB symbolic links seems to be broken, this is a workaround to fix them.
38+
RUN ln -sf ../../../liblldb.so.1 /usr/lib/llvm-19/lib/python3.12/site-packages/lldb/_lldb.cpython-312-x86_64-linux-gnu.so && \
39+
ln -sf ../../../../../x86_64-linux-gnu/libLLVM-19.so /usr/lib/llvm-19/lib/python3/dist-packages/lldb/libLLVM-19.*.so.1 && \
40+
ln -sf ../../../../../x86_64-linux-gnu/libLLVM-19.so /usr/lib/llvm-19/lib/python3/dist-packages/lldb/libLLVM-19.so.1
41+
42+
# This provides hint for LLDB to find the debug server binary.
43+
ENV LLDB_DEBUGSERVER_PATH=/usr/bin/lldb-server-19
44+
3645
# Install powershell (universal package) so we can test x.ps1 on Linux
3746
# FIXME: need a "universal" version that supports libicu74, but for now it still works to ignore that dep.
3847
RUN curl -sL "https://github.com/PowerShell/PowerShell/releases/download/v7.3.1/powershell_7.3.1-1.deb_amd64.deb" > powershell.deb && \
@@ -52,6 +61,7 @@ ENV RUST_CONFIGURE_ARGS \
5261
--build=x86_64-unknown-linux-gnu \
5362
--llvm-root=/usr/lib/llvm-19 \
5463
--enable-llvm-link-shared \
64+
--set build.lldb=lldb-19 \
5565
--set rust.randomize-layout=true \
5666
--set rust.thin-lto-import-instr-limit=10
5767

src/ci/docker/host-x86_64/x86_64-gnu-llvm-20/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1616
cmake \
1717
sudo \
1818
gdb \
19+
lldb-20 \
1920
llvm-20-tools \
2021
llvm-20-dev \
2122
libedit-dev \
@@ -33,6 +34,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3334
libmpc-dev \
3435
&& rm -rf /var/lib/apt/lists/*
3536

37+
# The official LLDB symbolic links seems to be broken, this is a workaround to fix them.
38+
RUN ln -sf ../../../liblldb.so.1 /usr/lib/llvm-20/lib/python3.13/site-packages/lldb/_lldb.cpython-313-x86_64-linux-gnu.so && \
39+
ln -sf ../../../../../x86_64-linux-gnu/libLLVM-20.so /usr/lib/llvm-20/lib/python3/dist-packages/lldb/libLLVM-20.*.so.1 && \
40+
ln -sf ../../../../../x86_64-linux-gnu/libLLVM-20.so /usr/lib/llvm-20/lib/python3/dist-packages/lldb/libLLVM-20.so.1
41+
42+
# This provides hint for LLDB to find the debug server binary.
43+
ENV LLDB_DEBUGSERVER_PATH=/usr/bin/lldb-server-20
44+
3645
# Install powershell (universal package) so we can test x.ps1 on Linux
3746
# FIXME: need a "universal" version that supports libicu74, but for now it still works to ignore that dep.
3847
RUN curl -sL "https://github.com/PowerShell/PowerShell/releases/download/v7.3.1/powershell_7.3.1-1.deb_amd64.deb" > powershell.deb && \
@@ -52,6 +61,7 @@ ENV RUST_CONFIGURE_ARGS \
5261
--build=x86_64-unknown-linux-gnu \
5362
--llvm-root=/usr/lib/llvm-20 \
5463
--enable-llvm-link-shared \
64+
--set build.lldb=lldb-20 \
5565
--set rust.randomize-layout=true \
5666
--set rust.thin-lto-import-instr-limit=10
5767

0 commit comments

Comments
 (0)