https://github.com/computermouth/tj252-running-late-sry
https://github.com/computermouth/tj252-running-late-sry
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/computermouth/tj252-running-late-sry
- Owner: computermouth
- Created: 2024-01-12T01:27:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-13T23:04:54.000Z (over 2 years ago)
- Last Synced: 2025-03-30T09:24:43.303Z (about 1 year ago)
- Language: C
- Size: 30.3 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### running late, sry
This is my entry for Trijam #252. I wanted to try a fast jam, and give zig a spin.
### disclaimer
this doesn't work great. the wasm build didn't seem to support zig's heap page allocator. I changed the `sprintf`'s to use an existing buffer on the stack, but that now seems to make the desktop build segfault :/
### Build Req
Native: `make`
Wasm:
- install the `emsdk`
- if `emsdk` is at `~/.emsdk`, just use `make PLATFORM=PLATFORM_WEB`
- you can override the `emsdk` path with `make PLATFORM=PLATFORM_WEB EMSDK_PATH=/some/path`
### Notes
The following are hacks, which hopefully will no longer be required after zig 0.11
- `entry.c` and it's contents
- `wasm32-freestanding` (as opposed to `wasm32-emscripten`)
- the usage of the emscripten linker