Skip to content

Commit 539e132

Browse files
niaowdeadprogram
authored andcommitted
fix binaryen build in docker
Oops I forgot to install cmake and ninja.
1 parent 641dcd7 commit 539e132

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ COPY --from=tinygo-base /tinygo/targets /tinygo/targets
2929

3030
RUN cd /tinygo/ && \
3131
apt-get update && \
32-
apt-get install -y make clang-11 libllvm11 lld-11 && \
32+
apt-get install -y make clang-11 libllvm11 lld-11 cmake ninja-build && \
33+
mkdir build && \
3334
make wasi-libc binaryen
3435

3536
# tinygo-avr stage installs the needed dependencies to compile TinyGo programs for AVR microcontrollers.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ifeq ($(OS),Windows_NT)
5454
CGO_LDFLAGS += -static -static-libgcc -static-libstdc++
5555
CGO_LDFLAGS_EXTRA += -lversion
5656

57-
BINARYEN_OPTION += -DCMAKE_EXE_LINKER_FLAGS='-static-libgcc -static-libstdc++'
57+
BINARYEN_OPTION += -DCMAKE_EXE_LINKER_FLAGS='-static-libgcc -static-libstdc++'
5858

5959
LIBCLANG_NAME = libclang
6060

0 commit comments

Comments
 (0)