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

Commit 32bbbe1

Browse files
committed
Attempt to get web build less broken
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.
1 parent 58e5e30 commit 32bbbe1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ authors = ["Jeff Parsons <[email protected]>"]
66
[lib]
77
path = "src/lib.rs"
88

9+
[[bin]]
10+
name = "demo"
11+
path = "src/bin/main.rs"
12+
913
[dependencies]
1014
noise = "0.2.0"
1115
piston = "0.25.1"

build_web.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ echo
1212
tput sgr0
1313

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

0 commit comments

Comments
 (0)