Skip to content

Commit

Permalink
Build without LLVM sign extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafał Chabowski committed May 28, 2024
1 parent 3196943 commit 500800c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ prepare:
rustup target add wasm32-unknown-unknown
rustup component add clippy --toolchain ${PINNED_TOOLCHAIN}
rustup component add rustfmt --toolchain ${PINNED_TOOLCHAIN}
rustup component add rust-src --toolchain ${PINNED_TOOLCHAIN}

.PHONY: build-contract
build-contract:
cargo build --release --target wasm32-unknown-unknown -p cep18
cargo build --release --target wasm32-unknown-unknown -p cep18-test-contract
RUSTFLAGS="-C target-cpu=mvp" cargo build --release --target wasm32-unknown-unknown -Z build-std=std,panic_abort -p cep18
RUSTFLAGS="-C target-cpu=mvp" cargo build --release --target wasm32-unknown-unknown -Z build-std=std,panic_abort -p cep18-test-contract
wasm-strip target/wasm32-unknown-unknown/release/cep18.wasm
wasm-strip target/wasm32-unknown-unknown/release/cep18_test_contract.wasm

Expand Down

0 comments on commit 500800c

Please sign in to comment.