11 Commits

Author SHA1 Message Date
Maicon Santana
97cb212bf0
remove emrun from emcc to avoid the game to keep calling stdio.html (#238)
* remove emrun from emcc to avoid the game to keep calling stdio.html

* Remove formater

* Add --emrun for examples and templates
2025-06-27 13:24:07 +02:00
Nikolas
03ec79ef85
Manually include ubsan in emscripten builds (#220) 2025-03-12 21:16:53 +01:00
Daniel Koucher Machado
de8c2d4585
Automatically include Emscripten headers (#173)
* add emscripten headers

* update func to return error
2024-11-26 20:18:33 +01:00
Not-Nik
a420751c0d
[emcc] Fix build for Windows (#86)
Co-authored-by: DanielKMach <danikoucher@gmail.com>
2024-11-08 15:18:30 +01:00
Not-Nik
6c0774619d
[emcc] Pass -sUSE_OFFSET_CONVERTER 2024-11-08 15:09:20 +01:00
Not-Nik
1224eb2290
emcc: Fix build (#155) 2024-09-28 19:43:57 +02:00
pancelor
c94e68d872
emcc: Remove webhack_c (#149)
I am unsure what the point of this file is, so maybe I should not be
removing it. But the comment says to try removing it to see if things
work fine, and things work fine on my machine when I remove it.

I tested 3 or 4 of the builtin examples using commands like this:
zig build raw_stream -Dtarget=wasm32-emscripten --sysroot ~/.emscripten_cache/sysroot

(see also #134; my sysroot setup is a bit weird. but I don't think
that would affect this at all)
2024-09-28 14:56:36 +02:00
Not-Nik
d7d9e41863
emcc: Look for emcc binary in PATH if no sysroot was specified 2024-09-28 14:51:24 +02:00
CosmicBagel
28f9a051e4
LazyPath.path deprecated in zig 0.12, removed in 0.13 (#89)
LazyPath.path deprecated in zig 0.12, removed in 0.13, using b.path() instead

Co-authored-by: CosmicBagel <>
2024-05-15 22:28:24 +02:00
Nikolas
ae751ce82e
Bump to Zig 0.12/raylib 5.1-dev (#81)
* Update to Zig 0.12.0 and raylib 5.1-dev

* More build.zig fixes for 0.12

* Get module with target and optimization

* Add examples to build step when compiling for emscripten

* Remove unused function

* Add build.* and emcc.zig to the zon paths (#83)

As per some info found through https://github.com/ziglang/zig/issues/18282,
this is apparently necessary to use this library as a dependency.

Co-authored-by: Drum Ogilvie <me@daogilvie.com>

* Update binding
2024-04-28 23:46:51 +02:00
Not-Nik
433c170c02
Update project setup script to use raylib-zig as a dependency, instead of cloning the entire repo 2024-04-03 19:37:10 +02:00