-
Notifications
You must be signed in to change notification settings - Fork 63
allow using system lua #186
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
Conversation
|
can you add lua 5.5 support, which was just released? |
|
Sorry, my distro doesn't have it yet so I can't test it, and ziglua itself doesn't support it yet either |
| const zlua = b.addModule("zlua", .{ | ||
| const zlua = if (system) b.addModule("zlua", .{ | ||
| .root_source_file = b.path("src/lib.zig"), | ||
| .target = target, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can't cross compile when using system lua so this should be fine
| .lua53 => zlua.linkSystemLibrary("lua5.3", .{ .preferred_link_mode = link_mode }), | ||
| .lua54 => zlua.linkSystemLibrary("lua5.4", .{ .preferred_link_mode = link_mode }), | ||
| .luajit => zlua.linkSystemLibrary("luajit", .{ .preferred_link_mode = link_mode }), | ||
| .luau => @panic("luau not supported for system lua"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the luau package in my distro doesn't come with libraries or headers
|
@robbielyman can this be backported to a branch that works with zig 0.15? |
This allows using the zig bindings with system lua