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 PoC #224

Closed
wants to merge 2 commits into from
Closed

emscripten PoC #224

wants to merge 2 commits into from

Conversation

hazeycode
Copy link
Member

@hazeycode hazeycode commented Feb 24, 2023

Hacky PoC to illustrate horrible workarounds required to support emscripten and start a discussion on the topic.

Currently, this builds and then hits some unreachable at runtime. I will do some debugging and try to get it further if and when I can but no promises.

To build and run the minimal_sdl sample in your web browser:
zig build minimal_sdl-run -Dtarget=wasm32-emscripten --sysroot emscripten/emsdk/upstream/emscripten/cache/sysroot

required reading:

todo:

  • request webgl compatible context

@hazeycode hazeycode changed the title emscripten PoC: get minimal_sdl to build emscripten PoC Feb 24, 2023
@hazeycode
Copy link
Member Author

hazeycode commented Nov 23, 2023

Closing because this is out of date and somewhat superseded by #309. Will leave the branch up for reference.

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.

None yet

1 participant