Skip to content

Commit a5e2b27

Browse files
deadprogramaykevl
authored andcommitted
docker: update dev docker image to use llvm11
Signed-off-by: deadprogram <[email protected]>
1 parent a5cf704 commit a5e2b27

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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.
22
FROM golang:1.15 AS tinygo-base
33

44
RUN 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

99
COPY . /tinygo
1010

@@ -29,7 +29,7 @@ COPY --from=tinygo-base /tinygo/targets /tinygo/targets
2929

3030
RUN 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

6262
RUN 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

7474
RUN 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

7979
CMD ["tinygo"]

0 commit comments

Comments
 (0)