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

Emscripten support roadmap #27

Closed
2 tasks
tomaka opened this issue Aug 23, 2014 · 7 comments
Closed
2 tasks

Emscripten support roadmap #27

tomaka opened this issue Aug 23, 2014 · 7 comments

Comments

@tomaka
Copy link
Contributor

tomaka commented Aug 23, 2014

Related: rust-lang/rust#2235

Work is being done on the emscripten branch

  • Basic support
  • Inputs
@tomaka tomaka added the roadmap label Aug 23, 2014
@tomaka
Copy link
Contributor Author

tomaka commented Aug 23, 2014

I looked into it, and support for emscripten will probably be easy to add once the rust compiler compiles reliably for this platform.

For the moment I didn't even manage to compile for emscripten because today emscripten's IR is incompatible with rust's IR output (different versions). Getting an old version of the rust compiler would likely fix this, but would require modifying a lot of code.

@hannobraun
Copy link

I have a limited proof of concept here: https://github.com/hannobraun/rum

The repository includes the exact versions that worked for me as submodules. I last updated this on 27 July. Maybe it's helpful to you.

@tomaka
Copy link
Contributor Author

tomaka commented Sep 1, 2014

My initial attempt at compiling gl-init-rs for emscripten was based on your work :)

However when running emcc I encountered a lot of errors related to a new LLVM attribute that was added in version 3.4 (deferenceable IIRC). I tried to manually solve them, but ran into several more errors that I couldn't solve (for example something_mul requires a constant in LLVM 3.3 and not in LLVM 3.4).

I think that the best way to make rust and emscripten work together would be to ask the emscripten maintainers for advices, but I don't have the credibility nor the time for this.

@hannobraun
Copy link

I think that the best way to make rust and emscripten work together would be to ask the emscripten maintainers for advices, but I don't have the credibility nor the time for this.

Time is the big problem for me, too. Maybe one day :)

@iceiix
Copy link
Contributor

iceiix commented Jan 12, 2019

Work is being done on the emscripten branch

This link is broken, is this the latest status? #856 Platform support for emscripten (also this open pull request but it has conflicts: #857 Improve Emscripten support)

@francesca64
Copy link
Member

@iceiix this issue is very outdated. A better place to ask about Emscripten support is over on winit; feel free to open an issue there.

@iceiix
Copy link
Contributor

iceiix commented Jan 16, 2019

rust-windowing/winit#760

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

No branches or pull requests

4 participants