Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
Attempt to get web build less broken
Browse files Browse the repository at this point in the history
Based on an idea from <rust-lang/rust#37555>.

It didn't make it work... but it doesn't appear to have made it _worse_.
So I'm just going to leave this here and then check back in later.
  • Loading branch information
jeffparsons committed Jan 31, 2017
1 parent 58e5e30 commit 32bbbe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ authors = ["Jeff Parsons <[email protected]>"]
[lib]
path = "src/lib.rs"

[[bin]]
name = "demo"
path = "src/bin/main.rs"

[dependencies]
noise = "0.2.0"
piston = "0.25.1"
Expand Down
2 changes: 1 addition & 1 deletion build_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ echo
tput sgr0

# Run the actual build.
rustup run nightly cargo build --target wasm32-unknown-emscripten "$@"
cargo +nightly rustc --target wasm32-unknown-emscripten --bin demo -- -C link-arg="-s" -C link-arg="BINARYEN_METHOD='interpret-binary'"

0 comments on commit 32bbbe1

Please sign in to comment.