mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-07-21 18:15:42 +00:00
updated build script
This commit is contained in:
+3
-3
@@ -10,15 +10,15 @@ then
|
|||||||
# Rust is compiled with rustc
|
# Rust is compiled with rustc
|
||||||
rustc $file -o out/contract.js -O --target wasm32-unknown-emscripten
|
rustc $file -o out/contract.js -O --target wasm32-unknown-emscripten
|
||||||
|
|
||||||
|
# Gas injector
|
||||||
|
cargo run --manifest-path=./../gas/Cargo.toml --release -- ./out/contract.wasm ./out/contract.wasm
|
||||||
|
|
||||||
# Allocator replacer
|
# Allocator replacer
|
||||||
cargo run --manifest-path=./../ext/Cargo.toml --release -- ./out/contract.wasm ./out/contract.wasm
|
cargo run --manifest-path=./../ext/Cargo.toml --release -- ./out/contract.wasm ./out/contract.wasm
|
||||||
|
|
||||||
# Symbols optimizer
|
# Symbols optimizer
|
||||||
cargo run --manifest-path=./../opt/Cargo.toml --release -- ./out/contract.wasm ./out/contract.wasm
|
cargo run --manifest-path=./../opt/Cargo.toml --release -- ./out/contract.wasm ./out/contract.wasm
|
||||||
|
|
||||||
# Gas injector
|
|
||||||
cargo run --manifest-path=./../gas/Cargo.toml --release -- ./out/contract.wasm ./out/contract.wasm
|
|
||||||
|
|
||||||
else
|
else
|
||||||
# c/c++ can be compiled directly by emcc
|
# c/c++ can be compiled directly by emcc
|
||||||
emcc $file -Os -s WASM=1 -s SIDE_MODULE=1 -o out/contract.wasm
|
emcc $file -Os -s WASM=1 -s SIDE_MODULE=1 -o out/contract.wasm
|
||||||
|
|||||||
Reference in New Issue
Block a user