File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
ci/docker/host-x86_64/dist-various-1 Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ than building it.
312312 . or_insert_with ( || Target :: from_triple ( & target. triple ) ) ;
313313
314314 // compiler-rt c fallbacks for wasm cannot be built with gcc
315- if target. contains ( "wasm" ) // bare metal targets without wasi sdk
315+ if target. contains ( "wasm" )
316316 && ( build. config . optimized_compiler_builtins ( * target)
317317 || build. config . rust_std_features . contains ( "compiler-builtins-c" ) )
318318 {
Original file line number Diff line number Diff line change @@ -58,6 +58,12 @@ RUN ./install-riscv32-none-elf.sh
5858COPY host-x86_64/dist-various-1/install-llvm-mingw.sh /build
5959RUN ./install-llvm-mingw.sh
6060
61+ COPY host-x86_64/dist-various-1/install-emscripten.sh /build
62+ RUN ./install-emscripten.sh
63+
64+ # Add Emscripten to PATH
65+ ENV PATH="/build/emsdk:/build/emsdk/upstream/emscripten:/build/emsdk/node/current/bin:${PATH}"
66+
6167# Suppress some warnings in the openwrt toolchains we downloaded
6268ENV STAGING_DIR=/tmp
6369
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -ex
3+
4+ apt-get update
5+ apt-get install -y --no-install-recommends \
6+ nodejs \
7+ default-jre
8+
9+ git clone https://github.com/emscripten-core/emsdk.git
10+ cd emsdk
11+ ./emsdk install latest
12+ ./emsdk activate latest
You can’t perform that action at this time.
0 commit comments