mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 08:24:25 +01:00
Fix clang image
Fix clang image Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
8f19ce75f0
commit
ca7679dc14
@ -1,26 +1,33 @@
|
||||
FROM dockcross/base:latest
|
||||
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
||||
# flang
|
||||
|
||||
ARG CLANG_VERSION=13
|
||||
ENV CLANG_VERSION=${CLANG_VERSION}
|
||||
|
||||
RUN echo "deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye main" >> /etc/apt/sources.list \
|
||||
&& echo "deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-${CLANG_VERSION} main" >> /etc/apt/sources.list \
|
||||
&& echo "deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye main" >> /etc/apt/sources.list \
|
||||
&& echo "deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-${CLANG_VERSION} main" >> /etc/apt/sources.list \
|
||||
&& wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
|
||||
&& apt-get update \
|
||||
&& apt-get purge --autoremove -y gcc g++ software-properties-common \
|
||||
&& apt-get -y install clang libc++-dev libc++abi-dev clang-format clang-tidy lldb \
|
||||
&& apt-get -y install clang-${CLANG_VERSION} libc++-${CLANG_VERSION}-dev libc++abi-${CLANG_VERSION}-dev clang-format-${CLANG_VERSION} clang-tidy-${CLANG_VERSION} lldb-${CLANG_VERSION} \
|
||||
&& apt-get clean --yes \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& update-alternatives --install /usr/bin/cc cc /usr/bin/clang 90 \
|
||||
&& update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 90 \
|
||||
&& update-alternatives --install /usr/bin/cpp cpp /usr/bin/clang++ 90 \
|
||||
&& update-alternatives --install /usr/bin/cc cc /usr/bin/clang-${CLANG_VERSION} 90 \
|
||||
&& update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${CLANG_VERSION} 90 \
|
||||
&& update-alternatives --install /usr/bin/cpp cpp /usr/bin/clang++-${CLANG_VERSION} 90 \
|
||||
&& update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${CLANG_VERSION} 90 \
|
||||
&& update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${CLANG_VERSION} 90 \
|
||||
&& cc --version \
|
||||
&& c++ --version \
|
||||
&& cpp --version
|
||||
|
||||
ENV CROSS_TRIPLE x86_64-linux-gnu
|
||||
ENV CROSS_ROOT /usr/bin
|
||||
ENV CC=/usr/bin/clang \
|
||||
ENV CC=/usr/bin/clang \
|
||||
CPP=/usr/bin/cpp \
|
||||
CXX=/usr/bin/clang++ \
|
||||
CXX=/usr/bin/clang++ \
|
||||
LD=/usr/bin/lld \
|
||||
FC=/usr/bin/flang
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user