@@ -28,13 +28,13 @@ RUN mv /clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04 /wasmcc
28
28
# those breaking changes on `libc`'s own CI
29
29
RUN git clone https://github.com/CraneStation/wasi-sysroot && \
30
30
cd wasi-sysroot && \
31
- git reset --hard 2201343c17b7149a75f543f523bea0c3243c6091
31
+ git reset --hard eee6ee7566e26f2535eb6088c8494a112ff423b9
32
32
RUN make -C wasi-sysroot install -j $(nproc) WASM_CC=/wasmcc/bin/clang INSTALL_DIR=/wasi-sysroot
33
33
34
34
# This is a small wrapper script which executes the actual clang binary in
35
35
# `/wasmcc` and then is sure to pass the right `--sysroot` argument which we
36
36
# just built above.
37
- COPY docker/wasm32-unknown- wasi/clang.sh /wasi-sysroot/bin/clang
37
+ COPY docker/wasm32-wasi/clang.sh /wasi-sysroot/bin/clang
38
38
39
39
# In the second container we're going to build the `wasmtime` binary which is
40
40
# used to execute wasi executables. This is a standard Rust project so we're
@@ -58,9 +58,9 @@ RUN curl -sSf https://sh.rustup.rs | sh -s -- -y
58
58
ENV PATH=/root/.cargo/bin:$PATH
59
59
60
60
RUN apt-get install -y --no-install-recommends python
61
- RUN git clone https://github.com/CraneStation/wasmtime wasmtime && \
61
+ RUN git clone --recursive https://github.com/CraneStation/wasmtime wasmtime && \
62
62
cd wasmtime && \
63
- git reset --hard a1c123c3dd8f9766990efe0f1734a646f61ba8a0
63
+ git reset --hard 67edb00f29b62864b00179fe4bfa99bc29973285
64
64
RUN cargo build --release --manifest-path wasmtime/Cargo.toml
65
65
66
66
# And finally in the last image we're going to assemble everything together.
@@ -86,8 +86,8 @@ COPY --from=wasmtime /wasmtime/target/release/wasmtime /usr/bin/
86
86
# executable with the right sysroot, and then we're sure to turn off the
87
87
# crt-static feature to ensure that the CRT that we're specifying with `clang`
88
88
# is used.
89
- ENV CARGO_TARGET_WASM32_UNKNOWN_WASI_RUNNER =wasmtime \
90
- CARGO_TARGET_WASM32_UNKNOWN_WASI_LINKER =/wasi-sysroot/bin/clang \
91
- CC_wasm32_unknown_wasi =/wasi-sysroot/bin/clang \
89
+ ENV CARGO_TARGET_WASM32_WASI_RUNNER =wasmtime \
90
+ CARGO_TARGET_WASM32_WASI_LINKER =/wasi-sysroot/bin/clang \
91
+ CC_wasm32_wasi =/wasi-sysroot/bin/clang \
92
92
PATH=$PATH:/rust/bin \
93
93
RUSTFLAGS=-Ctarget-feature=-crt-static
0 commit comments