Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

1 participant