-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update for Zig 0.12 #26
Update for Zig 0.12 #26
Conversation
This should be ready unless we want to try to use |
@@ -16,9 +16,9 @@ pub fn build(b: *std.Build) !void { | |||
|
|||
const build_roc = b.addExecutable(.{ | |||
.name = "build_roc", | |||
.root_source_file = .{ .path = "build_roc.zig" }, | |||
.root_source_file = b.path("build_roc.zig"), | |||
// Empty means native. |
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.
Stale comment?
|
||
lib.entry = .disabled; |
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.
Nice work
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.
Looks good. Works well for me!
Thank you 😍
Changes
const
, asvar
produces an error in Zig 0.12build.zig
for compatibility with Zig 0.12. UseaddExecutable
instead ofaddSharedLibrary
for WASM artifact.Note: Glue files have been updated, but in the future the plan is to remove these from source control and generate them locally.