Automatically include Emscripten headers (#173)

* add emscripten headers

* update func to return error
This commit is contained in:
Daniel Koucher Machado 2024-11-26 16:18:33 -03:00 committed by GitHub
parent 606d9bb9ba
commit de8c2d4585
Failed to generate hash of commit
4 changed files with 10 additions and 5 deletions

View file

@ -318,7 +318,7 @@ pub fn build(b: *std.Build) !void {
for (examples) |ex| {
if (target.query.os_tag == .emscripten) {
const exe_lib = emcc.compileForEmscripten(b, ex.name, ex.path, target, optimize);
const exe_lib = try emcc.compileForEmscripten(b, ex.name, ex.path, target, optimize);
exe_lib.root_module.addImport("raylib", raylib);
exe_lib.root_module.addImport("raygui", raygui);
const raylib_lib = getRaylib(b, target, optimize, options);