-
Notifications
You must be signed in to change notification settings - Fork 2
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
wasm32-emscripten target #3
Comments
I think your sysroot path is wrong, it should be something like Also some changes to zflecs build.zig would be required to build flecs C lib for emscripten using zig cc. You could try the following additions: zflecs_c_cpp.defineCMacro("__EMSCRIPTEN__", "1");
zflecs_c_cpp.addIncludePath(.{
.path = try std.fs.path.join(b.allocator, &.{ b.sysroot.?, "include" }),
}); Note: I haven't tried this myself |
Relevant info: zig-gamedev/zig-gamedev#309 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried:
Has anyone tried wasm building on this lib alone ?
Others solving this:
The text was updated successfully, but these errors were encountered: