Skip to content

Commit

Permalink
Use nightly to avoid compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ddorgan committed May 5, 2019
1 parent 29f7077 commit 2daaf3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/cmd/new.rs
Expand Up @@ -171,7 +171,7 @@ PROJNAME={}
# rm Cargo.lock
CARGO_INCREMENTAL=0 &&
cargo build --release --features generate-api-description --target=wasm32-unknown-unknown --verbose
cargo +nightly build --release --features generate-api-description --target=wasm32-unknown-unknown --verbose
wasm2wat -o target/$PROJNAME.wat target/wasm32-unknown-unknown/release/$PROJNAME.wasm
cat target/$PROJNAME.wat | sed "s/(import \"env\" \"memory\" (memory (;0;) 2))/(import \"env\" \"memory\" (memory (;0;) 2 16))/" > target/$PROJNAME-fixed.wat
wat2wasm -o target/$PROJNAME.wasm target/$PROJNAME-fixed.wat
Expand Down

0 comments on commit 2daaf3d

Please sign in to comment.