mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-23 22:09:03 +00:00
fix binaryen build in docker
Oops I forgot to install cmake and ninja.
This commit is contained in:
+2
-1
@@ -29,7 +29,8 @@ COPY --from=tinygo-base /tinygo/targets /tinygo/targets
|
|||||||
|
|
||||||
RUN cd /tinygo/ && \
|
RUN cd /tinygo/ && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y make clang-11 libllvm11 lld-11 && \
|
apt-get install -y make clang-11 libllvm11 lld-11 cmake ninja-build && \
|
||||||
|
mkdir build && \
|
||||||
make wasi-libc binaryen
|
make wasi-libc binaryen
|
||||||
|
|
||||||
# tinygo-avr stage installs the needed dependencies to compile TinyGo programs for AVR microcontrollers.
|
# tinygo-avr stage installs the needed dependencies to compile TinyGo programs for AVR microcontrollers.
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ ifeq ($(OS),Windows_NT)
|
|||||||
CGO_LDFLAGS += -static -static-libgcc -static-libstdc++
|
CGO_LDFLAGS += -static -static-libgcc -static-libstdc++
|
||||||
CGO_LDFLAGS_EXTRA += -lversion
|
CGO_LDFLAGS_EXTRA += -lversion
|
||||||
|
|
||||||
BINARYEN_OPTION += -DCMAKE_EXE_LINKER_FLAGS='-static-libgcc -static-libstdc++'
|
BINARYEN_OPTION += -DCMAKE_EXE_LINKER_FLAGS='-static-libgcc -static-libstdc++'
|
||||||
|
|
||||||
LIBCLANG_NAME = libclang
|
LIBCLANG_NAME = libclang
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user