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

Add support for emscripten targets #106

Merged
merged 6 commits into from
Jun 10, 2017
Merged

Conversation

malbarbo
Copy link
Contributor

@malbarbo malbarbo commented Jun 7, 2017

Emscripten 1.37.13 provides pre-build binaries, so we do not need to build it.

Node 8.0.0 can exec wasm files, so we can have test support for both asmjs and wasm32. We use a workaround for emscripten-core/emscripten#4542.

@malbarbo
Copy link
Contributor Author

malbarbo commented Jun 7, 2017

This was inspired by #36, but I expected that the PR would be different that I wrote it from the beginning.

@malbarbo
Copy link
Contributor Author

malbarbo commented Jun 7, 2017

Tested this with some local projects and it worked fine. Projects using libc generally fails, it seems that libc for emscripten targets are broken, I'm working on it.

Copy link
Contributor

@japaric japaric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @malbarbo. This is really nice!

Projects using libc generally fails, it seems that libc for emscripten targets are broken, I'm working on it.

I'd be fine landing this and adding a note to the README that some projects that use libc may fail.

docker/node-wasm Outdated
# Workaround for
# https://github.com/kripken/emscripten/issues/4542

if [ "$(basename $path)" != "deps" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment here indicating what kind of paths we expect to see here and why we have to branch here and in the if below?

@malbarbo
Copy link
Contributor Author

malbarbo commented Jun 8, 2017

Done.

@japaric
Copy link
Contributor

japaric commented Jun 10, 2017

Thanks @malbarbo ❤️

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit d1d7253 has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit d1d7253 with merge d1d7253...

@homunkulus
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: japaric
Pushing d1d7253 to master...

@homunkulus homunkulus merged commit d1d7253 into cross-rs:master Jun 10, 2017
@malbarbo malbarbo deleted the emscripten2 branch October 20, 2017 19:07
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

Successfully merging this pull request may close these issues.

3 participants