Skip to content

Commit

Permalink
Fix clang and lld installation
Browse files Browse the repository at this point in the history
Refers to #21
  • Loading branch information
a13xp0p0v committed Sep 18, 2024
1 parent 4800f73 commit be11369
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ RUN set -x && echo 'debconf debconf/frontend select Noninteractive' | debconf-se
fi \
fi; \
if [ "$CLANG_VERSION" ]; then \
if [ "$CLANG_VERSION" != "5.0" ] && [ "$CLANG_VERSION" != "6.0" ]; then \
apt-get install -y -q clang-${CLANG_VERSION} lld-${CLANG_VERSION} clang-tools-${CLANG_VERSION}; \
else \
apt-get install -y -q clang-${CLANG_VERSION} lld-${CLANG_VERSION} clang-tools-6.0; \
fi \
apt-get install -y -q clang-${CLANG_VERSION} lld-${CLANG_VERSION} clang-tools-${CLANG_VERSION}; \
fi

ARG UNAME
Expand All @@ -44,6 +40,7 @@ RUN set -x && \
if [ "$CLANG_VERSION" ]; then \
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${CLANG_VERSION} 100 && \
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${CLANG_VERSION} 100; \
sudo update-alternatives --install /usr/bin/lld lld /usr/bin/lld-${CLANG_VERSION} 100; \
fi

USER ${UNAME}
Expand Down

0 comments on commit be11369

Please sign in to comment.