1- # TinyGo base stage installs the most recent Go 1.15.x, LLVM 10 and the TinyGo compiler itself.
1+ # TinyGo base stage installs the most recent Go 1.15.x, LLVM 11 and the TinyGo compiler itself.
22FROM golang:1.15 AS tinygo-base
33
44RUN wget -O- https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - && \
5- echo "deb http://apt.llvm.org/buster/ llvm-toolchain-buster-10 main" >> /etc/apt/sources.list && \
5+ echo "deb http://apt.llvm.org/buster/ llvm-toolchain-buster-11 main" >> /etc/apt/sources.list && \
66 apt-get update && \
7- apt-get install -y llvm-10 -dev libclang-10 -dev lld-10 git
7+ apt-get install -y llvm-11 -dev libclang-11 -dev lld-11 git
88
99COPY . /tinygo
1010
@@ -29,7 +29,7 @@ COPY --from=tinygo-base /tinygo/targets /tinygo/targets
2929
3030RUN cd /tinygo/ && \
3131 apt-get update && \
32- apt-get install -y make clang-10 libllvm10 lld-10 && \
32+ apt-get install -y make clang-11 libllvm11 lld-11 && \
3333 make wasi-libc
3434
3535# tinygo-avr stage installs the needed dependencies to compile TinyGo programs for AVR microcontrollers.
@@ -61,7 +61,7 @@ COPY --from=tinygo-base /tinygo/lib /tinygo/lib
6161
6262RUN cd /tinygo/ && \
6363 apt-get update && \
64- apt-get install -y apt-utils make clang-10 && \
64+ apt-get install -y apt-utils make clang-11 && \
6565 make gen-device-nrf && make gen-device-stm32
6666
6767# tinygo-all stage installs the needed dependencies to compile TinyGo programs for all platforms.
@@ -73,7 +73,7 @@ COPY --from=tinygo-base /tinygo/lib /tinygo/lib
7373
7474RUN cd /tinygo/ && \
7575 apt-get update && \
76- apt-get install -y apt-utils make clang-10 binutils-avr gcc-avr avr-libc && \
76+ apt-get install -y apt-utils make clang-11 binutils-avr gcc-avr avr-libc && \
7777 make gen-device
7878
7979CMD ["tinygo" ]
0 commit comments