Refactor build scripts.

This commit is contained in:
Sergey Pepyakin
2018-06-08 18:07:15 +03:00
parent 977b349ca0
commit ddd7217911
4 changed files with 14 additions and 9 deletions
+12
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e
rm -rf ./target
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e
cargo +nightly build --target=wasm32-unknown-unknown --release
-7
View File
@@ -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