Skip to content

Commit a8dcad0

Browse files
committed
rust: move to p1 target
1 parent a2f00e4 commit a8dcad0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docker/build.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ RUN apt update \
2424
# Install rust
2525
RUN curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh -s -- -y \
2626
&& source ~/.cargo/env \
27-
&& rustup target add wasm32-wasi
27+
&& rustup target add wasm32-wasip1
2828

2929

3030
# Fetch the code and update submodules

tasks/rabe.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ def build(ctx, clean=False):
1818
rmtree(join(rabe_dir, "target"))
1919

2020
# First, cross-compile the rust library to WASM
21-
# TODO: rename to wasm32-wasip1
22-
cargo_cmd = "cargo build --release --target=wasm32-wasi"
21+
cargo_cmd = "cargo build --release --target=wasm32-wasip1"
2322
run(cargo_cmd, shell=True, check=True, cwd=rabe_dir)
2423

2524
# Install it in the WASM sysroot
2625
build_env = get_faasm_build_env_dict()
27-
src_lib = join(rabe_dir, "target", "wasm32-wasi", "release", "librabe.a")
26+
src_lib = join(rabe_dir, "target", "wasm32-wasip1", "release", "librabe.a")
2827
dst_lib = join(build_env["FAASM_WASM_LIB_INSTALL_DIR"], "librabe.a")
2928
copy(src_lib, dst_lib)
3029

0 commit comments

Comments
 (0)