-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support asmjs-unknown-emscripten
and wasm32-unknown-emscripten
#36
Conversation
@homunkulus try |
😢 |
💔 Test failed - status-travis |
☔ The latest upstream changes (presumably 5d70947) made this pull request unmergeable. Please resolve the merge conflicts. |
I figured out how to run this output using node. You need to build node from this branch and pass the
The weird part is that it expects the
Nor this:
It has to be executed like this:
Which pretty much precludes |
Hi Jorge! I haven't tried using cross yet but I think I can provide some information that might (or might not) be useful for it as well. Looks like currently it's not possible to use $ cargo rustc --target=wasm32-unknown-emscripten -- -o wasm.html
Compiling wasm-test3 v0.1.0 (file:///Users/Chico/Projects/wasm-test3)
warning: ignoring specified output filename because multiple outputs were requested
warning: ignoring --out-dir flag due to -o flag. Although it's more like |
@chicoxyzzy Hmm, if |
rebased. This will likely not land because of timeouts but let's try anyway. @homunkulus r+ |
@homunkulus r+ |
📌 Commit 9491053 has been approved by |
📌 Commit a866006 has been approved by |
💥 Test timed out |
☔ The latest upstream changes (presumably #81) made this pull request unmergeable. Please resolve the merge conflicts. |
Since rust-lang/cargo#3954 got merged, setting [target.asmjs-unknown-emscripten]
linker = "emcc"
runner = "node" makes Per comments above, with the right version of [target.wasm32-unknown-emscripten]
linker = "emcc"
runner = "node --expose-wasm" |
Closing in favor of #106 |
cc @brson
cross build --target asmjs-unknown-emscripten
andnode hello.js
works.cross test --target asmjs-unknown-emscripten
(andcross run
) would Just Work ifrustc
generated executable.js
files with a#!/usr/bin/env node
shebang in it.cross build --target wasm-unknown-emscripten
succeeds but its output fails to run usingnode
:Is this a regression? @brson reported that
node hello.wasm.js
worked way back in this thread.