Skip to content
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

Update Emscripten support #235

Open
tlively opened this issue Jan 9, 2020 · 2 comments
Open

Update Emscripten support #235

tlively opened this issue Jan 9, 2020 · 2 comments

Comments

@tlively
Copy link

tlively commented Jan 9, 2020

emscripten-core/emscripten#10148 is a report from a cargo-web user whose Emscripten installation is managed by cargo-web but is invalid. I took a look at the cargo-web source, and noticed a few issues:

  1. The help messages with instructions for installing Emscripten should probably recommend using emsdk regardless of the platform, since that's the only distribution method maintained by the Emscripten team and will make getting the latest bugfixes much easier.

  2. The instructions for installing emsdk are out of date. The current recommended method is to clone from GitHub. The mozilla-games s3 bucket is not being updated any more.

  3. It looks like cargo-web is trying to use Emscripten's fastcomp backend, but recent versions of Rust have switched to using Emscripten with Rust's LLVM rather than the separate fastcomp LLVM. Recent emsdk versions install the upstream-LLVM version of Emscripten by default.

@milahu
Copy link

milahu commented Dec 5, 2020

It looks like cargo-web is trying to use Emscripten's fastcomp backend

yepp

url: "https://github.com/koute/emscripten-build/releases/download/emscripten-1.38.19-1/emscripten-1.38.19-1-x86_64-unknown-linux-gnu.tgz",

$ emsdk list --old | grep 1.38.19
         sdk-fastcomp-tag-1.38.19-64bit
           emscripten-1.38.19       

recent versions of Rust have switched to using Emscripten with Rust's LLVM

so .. are there alternatives to cargo-web? (compatible with recent version of emscripten)
or .. how to fix cargo-web?

@tlively
Copy link
Author

tlively commented Dec 6, 2020

I would recommend just using cargo itself without additional tools. Details here: https://blog.therocode.net/2020/10/a-guide-to-rust-sdl2-emscripten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants