mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-23 00:54:26 +01:00
Merge remote-tracking branch 'origin/HEAD' into add_tinycc
This commit is contained in:
commit
d76d2ae8c5
@ -7,13 +7,13 @@ if [[ $# == 0 ]]; then
|
|||||||
# Presumably the image has been run directly, so help the user get
|
# Presumably the image has been run directly, so help the user get
|
||||||
# started by outputting the dockcross script
|
# started by outputting the dockcross script
|
||||||
if [[ -n $DEFAULT_DOCKCROSS_IMAGE ]]; then
|
if [[ -n $DEFAULT_DOCKCROSS_IMAGE ]]; then
|
||||||
head -n 2 /dockcross/dockcross
|
head -n 2 /dockcross/dockcross.sh
|
||||||
echo "DEFAULT_DOCKCROSS_IMAGE=$DEFAULT_DOCKCROSS_IMAGE"
|
echo "DEFAULT_DOCKCROSS_IMAGE=$DEFAULT_DOCKCROSS_IMAGE"
|
||||||
tail -n +4 /dockcross/dockcross |
|
tail -n +4 /dockcross/dockcross.sh |
|
||||||
sed -e "s@dockcross\/linux\-armv7@${DEFAULT_DOCKCROSS_IMAGE}@g" |
|
sed -e "s@dockcross\/linux\-armv7@${DEFAULT_DOCKCROSS_IMAGE}@g" |
|
||||||
sed -e "s@dockcross\-linux\-armv7@${DEFAULT_DOCKCROSS_IMAGE//[\/:]/-}@g"
|
sed -e "s@dockcross\-linux\-armv7@${DEFAULT_DOCKCROSS_IMAGE//[\/:]/-}@g"
|
||||||
else
|
else
|
||||||
cat /dockcross/dockcross
|
cat /dockcross/dockcross.sh
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -1,17 +1,24 @@
|
|||||||
FROM dockcross/base:latest
|
FROM dockcross/base:latest
|
||||||
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
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 \
|
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 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 - \
|
&& wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get purge --autoremove -y gcc g++ software-properties-common \
|
&& 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 \
|
&& apt-get clean --yes \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& update-alternatives --install /usr/bin/cc cc /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++ 90 \
|
&& update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${CLANG_VERSION} 90 \
|
||||||
&& update-alternatives --install /usr/bin/cpp cpp /usr/bin/clang++ 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 \
|
&& cc --version \
|
||||||
&& c++ --version \
|
&& c++ --version \
|
||||||
&& cpp --version
|
&& cpp --version
|
||||||
|
Loading…
Reference in New Issue
Block a user