capy-ui / capy

💻Build one codebase and get native UI on Windows, Linux and Web
https://capy-ui.org
Mozilla Public License 2.0
1.6k stars 60 forks source link

Zig master compile error #73

Closed VisenDev closed 7 months ago

VisenDev commented 7 months ago

The repo fails to build with the latest zig master

Robert@Roberts-MacBook-Pro-2 ~/z/capy (master)> zig build
/Users/Robert/zig/capy/build.zig:14:34: error: no field or member function named 'getOsTag' in 'Build.ResolvedTarget'
    const broken = switch (target.getOsTag()) {
                           ~~~~~~^~~~~~~~~
/Users/Robert/zig/zig/build/stage3/lib/zig/std/Build.zig:2276:28: note: struct declared here
pub const ResolvedTarget = struct {
zenith391 commented 7 months ago

fixed by 4d1778feba39949fb2569379b8ac4aabf4842478 although capy now targets Zig version 0.12.0-dev.2063+804cee3b9 instead of master.