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

Support wasm and wasi #43

Merged
merged 1 commit into from
May 15, 2019
Merged

Support wasm and wasi #43

merged 1 commit into from
May 15, 2019

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented May 11, 2019

This is part of an experiment to port rustc to wasi. (cc rust-lang/miri#722)

Webassembly doesn't support any mmap like mechanism.

@bjorn3
Copy link
Member Author

bjorn3 commented May 11, 2019

cc @RReverser

Copy link

@RReverser RReverser left a comment

Choose a reason for hiding this comment

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

I'm not a repo owner, but changes make sense to me.

@wesleywiser wesleywiser merged commit 582b99b into rust-lang:master May 15, 2019
@bjorn3 bjorn3 deleted the wasi_support branch May 15, 2019 14:26
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Apr 22, 2020
…ic-morse

allow wasm32 compilation of librustc_data_structures/profiling.rs

I'm trying to use rustfmt from a wasm app. I ran into this compilation problem rust-lang/rustfmt#4132 and after investigating, it looked like just adjusting a few cfg's. I based it on how measureme added support in rust-lang/measureme#43.

My testing on my macbook was just that librustc_data_structures builds now with both:
- cargo build
- cargo build --target wasm32-unknown-unknown
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