Skip to content

Commit 6515c28

Browse files
committed
Fold the symlink create
Signed-off-by: jinge90 <ge.jin@intel.com>
1 parent 8cbe18d commit 6515c28

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/containers/libc/Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,10 @@ RUN wget https://apt.llvm.org/llvm.sh && \
5151
# testing CI for libc-based compiler-rt builtins. The package only symlinks
5252
# the tools into /usr/bin under versioned names (lit-23, FileCheck-23, ...),
5353
# so also symlink them under their canonical names.
54-
RUN apt-get install -y llvm-23-tools && \
55-
ln -s -t /usr/bin $(dpkg -L llvm-23-tools | grep '^/usr/lib/llvm-23/bin/')
56-
5754
# llvm-link is required to build bitcode library for GPU targets
58-
RUN if [ ! -e /usr/bin/llvm-link ]; then \
59-
ln -s /usr/lib/llvm-23/bin/llvm-link /usr/bin/llvm-link; \
60-
fi
55+
RUN apt-get install -y llvm-23-tools && \
56+
ln -s -t /usr/bin $(dpkg -L llvm-23-tools | grep '^/usr/lib/llvm-23/bin/') && \
57+
ln -s /usr/lib/llvm-23/bin/llvm-link /usr/bin/llvm-link
6158

6259
# Install gmp and mpfr for cross compilation
6360
RUN wget https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz && \

0 commit comments

Comments
 (0)