crisp icon indicating copy to clipboard operation
crisp copied to clipboard

Fix the build.zig file for latest Zig compatibility

Open melroy89 opened this issue 2 years ago • 4 comments

This will only fix our build.zip which is now in-line with the latest Zig v0.11.0.

The build will still fail however, but that is due to the to the zig-terminal dep:

deps/zig-terminal/src/main.zig:50:30: error: struct 'target.Target' has no member named 'current'
const is_windows = std.Target.current.os.tag == .windows;
                   ~~~~~~~~~~^~~~~~~~
/usr/lib/zig/std/target.zig:6:20: note: struct declared here
pub const Target = struct {

melroy89 avatar Sep 27 '23 22:09 melroy89

I would just switch this to use the new package manager stuff. Assuming zig-terminal is being kept up to date.

rvcas avatar Sep 28 '23 12:09 rvcas

Zig terminal doesn't seems to be updated anymore. At least not recently

melroy89 avatar Sep 28 '23 13:09 melroy89

We can just remove that dependency then

rvcas avatar Sep 28 '23 17:09 rvcas

Yea not sure how much you depend on this terminal dependency. And what it all emulates.

Your project was just the first project I tried to learn zig 🤣. And fixing your build. Despite not able to run the executable yet.

melroy89 avatar Sep 28 '23 22:09 melroy89