Skip to content

Commit

Permalink
Rebuild rust
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga committed Jan 21, 2025
1 parent 57c9d41 commit 5b56811
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ build.examples.rust: examples/allocation/rust/testdata/greet.wasm imports/wasi_s

# Normally, we build release because it is smaller. Testing dwarf requires the debug build.
internal/testing/dwarftestdata/testdata/rust/main.wasm.xz:
cd $(@D) && cargo wasi build
cd $(@D) && cargo build --target wasm32-wasip1
mv $(@D)/target/wasm32-wasip1/debug/main.wasm $(@D)
cd $(@D) && xz -k -f ./main.wasm # Rust's DWARF section is huge, so compress it.

# Builds rust using cargo normally, or cargo-wasi.
%.wasm: %.rs
@(cd $(@D); cargo $(if $(findstring wasi,$(cargo_target)),wasi build,build --target $(cargo_target)) --release)
@(cd $(@D); cargo build --target $(cargo_target) --release)
@mv $(@D)/target/$(cargo_target)/release/$(@F) $(@D)

spectest_base_dir := internal/integration_test/spectest
Expand Down
Binary file modified examples/allocation/rust/testdata/greet.wasm
Binary file not shown.
Binary file modified imports/wasi_snapshot_preview1/example/testdata/cargo-wasi/cat.wasm
100644 → 100755
Binary file not shown.
Binary file modified imports/wasi_snapshot_preview1/testdata/cargo-wasi/wasi.wasm
100644 → 100755
Binary file not shown.
Binary file modified internal/testing/dwarftestdata/testdata/rust/main.wasm.xz
100644 → 100755
Binary file not shown.

0 comments on commit 5b56811

Please sign in to comment.