From 500800c40e7a2e94ca05022a8afab89a11d34779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Chabowski?= Date: Tue, 28 May 2024 12:40:43 +0200 Subject: [PATCH] Build without LLVM sign extensions --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3f13ad3..e9be4c8 100644 --- a/Makefile +++ b/Makefile @@ -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