@@ -23,18 +23,20 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone &
23
23
pkg-config \
24
24
<
8000
div class="diff-text-inner"> tar \
25
25
unzip \
26
+ llvm \
26
27
&& rm -rf /var/lib/apt/lists/*
27
28
# Install toolchains in /opt
28
29
RUN curl downloads.arduino.cc/tools/internal/toolchains.tar.gz | tar -xz "opt"
29
30
# install proper arm toolchains (already present in the toolchains.tar.gz archive)
30
31
# curl -L 'https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz' | tar -xJC /opt && \
31
32
# curl -L 'https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz' | tar -xJC /opt
32
33
33
- RUN cd /opt/osxcross \
34
- git pull \
35
- # use a specific version of osxcross (it does not have tags)
36
- git checkout da2c3d4ff604458a931b08b3af800c5a454136de \
37
- UNATTENDED=1 SDK_VERSION=10.15 ./build.sh
34
+ RUN cd /opt/osxcross && \
35
+ git pull && \
36
+ # use a specific version of osxcross (it does not have tags), this commit has the automatic install of compiler_rt libraries
37
+ git checkout b875d7c1360c8ff2077463d7a5a12e1cff1cc683 && \
38
+ UNATTENDED=1 SDK_VERSION=10.15 ./build.sh && \
39
+ ENABLE_COMPILER_RT_INSTALL=1 SDK_VERSION=10.15 ./build_compiler_rt.sh
38
40
# Set toolchains paths
39
41
# arm-linux-gnueabihf-gcc -> linux_arm
40
42
# aarch64-linux-gnu-gcc -> linux_arm64
@@ -59,6 +61,7 @@ RUN CROSS_COMPILE=x86_64-ubuntu16.04-linux-gnu /opt/lib/build_libs.sh && \
59
61
FROM ubuntu:latest
60
62
# Copy all the installed toolchains and compiled libs
61
63
COPY --from=build /opt /opt
64
+ COPY --from=build /usr/lib/llvm-10/lib/clang/10.0.0 /usr/lib/llvm-10/lib/clang/10.0.0
62
65
ENV TZ=Europe/Rome
63
66
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
64
67
apt-get update && \
0 commit comments