Skip to content
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

Emscripten build with sokol-zig and Ziglua #83

Open
luchak opened this issue Sep 20, 2024 · 0 comments
Open

Emscripten build with sokol-zig and Ziglua #83

luchak opened this issue Sep 20, 2024 · 0 comments

Comments

@luchak
Copy link
Contributor

luchak commented Sep 20, 2024

This is mostly a combination thank you and FYI, prompted by a probably-niche use case - not asking for anything! I've been trying to figure out how to integrate Lua into my project and still keep the web build working. Because of libc++ problems (Luau) and longjmp issues (Lua 5.x), the only way I could find to get the whole thing working was to compile and link Lua explicitly with a single version of emsdk: https://github.com/natecraddock/ziglua/pull/95/files . I used sokol-zig's link step and added a similar compile step helper.

I had a problem with my Github CD pipeline where the two emsdk setup steps were stomping on each other, so I had to add the possibly-questionable line:

dep_ziglua.artifact("luau").step.dependOn(&dep_sokol.artifact("sokol_clib").step);

into my build.zig - otherwise things seem to be working fine now.

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

No branches or pull requests

1 participant