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

Prepare library to be used with wasm32-wasi #2907

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

yurydelendik
Copy link

@yurydelendik yurydelendik commented Jun 13, 2019

There is ongoing efforts to support WASI for different runtimes/hosts such as node.js. Here is the changes I made to make compilation work for clang with "wasm32-wasi" target and the wasi-sdk. The "wasi_polyfill.*" code will be removed in final PR.

There is also minor change in the sassc: https://github.com/yurydelendik/sassc/tree/wasi . The build version of sassc on node: https://www.npmjs.com/package/sassc-wasi .

Please provide any feedback and TODO items to make the patch landable. Thanks.

@xzyfer
Copy link
Contributor

xzyfer commented Jun 13, 2019 via email

Copy link
Contributor

@mgreter mgreter left a comment

Choose a reason for hiding this comment

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

Overall looks ok. There is also the autotools build. Any plans to
add wasm target also there? It would also be good to know
which files in the wasm directory were auto generated.

src/file.cpp Outdated Show resolved Hide resolved
src/file.cpp Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
src/plugins.cpp Outdated Show resolved Hide resolved
wasm/cli.js Outdated Show resolved Hide resolved
@yurydelendik
Copy link
Author

There is also the autotools build. Any plans to
add wasm target also there?

I have near 0 experience with autotools. I had no plans to touch that portion. Let me know what needs to be done there.

The example files were removed from this repo and placed at https://github.com/yurydelendik/sassc/tree/wasi/wasm

src/file.cpp Show resolved Hide resolved
@xzyfer
Copy link
Contributor

xzyfer commented Jun 17, 2019

I suggest rebasing on master because a large changeset was just merged

It is the changes I made to make compilation work for clang with "wasm32-wasi" target and the wasi-sdk.
@xzyfer
Copy link
Contributor

xzyfer commented Jun 20, 2019 via email

@yurydelendik
Copy link
Author

Is there anything needs to be done for acceptance of this PR?

@mgreter mgreter added the Build label Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants