Skip to content

Commit a7d3eb1

Browse files
committed
Rename wasm32-unknown-wasi to wasm32-wasi
1 parent bcb989f commit a7d3eb1

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ matrix:
203203
stage: tools-and-build-and-tier1
204204
- env: TARGET=x86_64-unknown-linux-musl
205205
stage: tools-and-build-and-tier1
206-
- env: TARGET=wasm32-unknown-wasi
206+
- env: TARGET=wasm32-wasi
207207
rust: nightly
208208
stage: tools-and-build-and-tier1
209209

ci/docker/wasm32-unknown-wasi/clang.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

ci/docker/wasm32-unknown-wasi/Dockerfile renamed to ci/docker/wasm32-wasi/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ RUN mv /clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04 /wasmcc
2828
# those breaking changes on `libc`'s own CI
2929
RUN git clone https://github.com/CraneStation/wasi-sysroot && \
3030
cd wasi-sysroot && \
31-
git reset --hard 2201343c17b7149a75f543f523bea0c3243c6091
31+
git reset --hard eee6ee7566e26f2535eb6088c8494a112ff423b9
3232
RUN make -C wasi-sysroot install -j $(nproc) WASM_CC=/wasmcc/bin/clang INSTALL_DIR=/wasi-sysroot
3333

3434
# This is a small wrapper script which executes the actual clang binary in
3535
# `/wasmcc` and then is sure to pass the right `--sysroot` argument which we
3636
# 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
3838

3939
# In the second container we're going to build the `wasmtime` binary which is
4040
# 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
5858
ENV PATH=/root/.cargo/bin:$PATH
5959

6060
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 && \
6262
cd wasmtime && \
63-
git reset --hard a1c123c3dd8f9766990efe0f1734a646f61ba8a0
63+
git reset --hard 67edb00f29b62864b00179fe4bfa99bc29973285
6464
RUN cargo build --release --manifest-path wasmtime/Cargo.toml
6565

6666
# 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/
8686
# executable with the right sysroot, and then we're sure to turn off the
8787
# crt-static feature to ensure that the CRT that we're specifying with `clang`
8888
# 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 \
9292
PATH=$PATH:/rust/bin \
9393
RUSTFLAGS=-Ctarget-feature=-crt-static

ci/docker/wasm32-wasi/clang.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
exec /wasmcc/bin/clang --target=wasm32-wasi --sysroot /wasi-sysroot "$@"

0 commit comments

Comments
 (0)