Drop extra suffix in wasm-bindgen output name
Oops, it's not supposed to have a file suffix! It's a bit annoying that it still produces both a WASM and JS file, just not the right ones (and no _bg.wasm at all). Especially without any warning that it is doing something different than normal. Oh well.
This commit is contained in:
@@ -16,7 +16,7 @@ out:
|
|||||||
# Both the JS and WASM files are generated by the wasm-bindgen call, so both
|
# Both the JS and WASM files are generated by the wasm-bindgen call, so both
|
||||||
# get to be on the target half of this recipe.
|
# get to be on the target half of this recipe.
|
||||||
out/boids.js out/boids.wasm: out target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm
|
out/boids.js out/boids.wasm: out target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm
|
||||||
wasm-bindgen --no-typescript --target web --out-dir ./out/ --out-name boids.wasm target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm
|
wasm-bindgen --no-typescript --target web --out-dir ./out/ --out-name boids target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm
|
||||||
|
|
||||||
out/index.html: www/index.html
|
out/index.html: www/index.html
|
||||||
cp -a $< $@
|
cp -a $< $@
|
||||||
|
|||||||
Reference in New Issue
Block a user