mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Refactor build scripts.
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Make LLD produce a binary that imports memory from the outside environment.
|
||||||
|
export RUSTFLAGS="-C link-arg=--import-memory"
|
||||||
|
|
||||||
|
cargo +nightly build --target=wasm32-unknown-unknown --release --no-default-features
|
||||||
|
|
||||||
|
for i in basic_add
|
||||||
|
do
|
||||||
|
wasm-gc target/wasm32-unknown-unknown/release/$i.wasm target/wasm32-unknown-unknown/release/$i.compact.wasm
|
||||||
|
done
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
rm -rf ./target
|
rm -rf ./target
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cargo +nightly build --target=wasm32-unknown-unknown --release
|
cargo +nightly build --target=wasm32-unknown-unknown --release
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
rustup update nightly
|
|
||||||
rustup target add wasm32-unknown-unknown --toolchain nightly
|
|
||||||
rustup update stable
|
|
||||||
cargo +nightly install --git https://github.com/alexcrichton/wasm-gc
|
|
||||||
cargo +nightly install --git https://github.com/pepyakin/wasm-export-table.git
|
|
||||||
Reference in New Issue
Block a user