Refactor build scripts.

This commit is contained in:
Sergey Pepyakin
2018-06-08 18:07:15 +03:00
parent 14675edcbc
commit ca48416968
14 changed files with 96 additions and 55 deletions
@@ -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
rm -rf ./target