hardliner66 / abps

Mozilla Public License 2.0
2 stars 0 forks source link

zig 0.13.0 : error: no field named 'path' in union 'Build.LazyPath' #1

Open phdye opened 4 months ago

phdye commented 4 months ago

How can I build abps using zig 0.13.0 ? Thank you.

(base) [ 4 ] xps-ne ~/build/abps $ zig version
0.13.0
(base) [ 4 ] xps-ne ~/build/abps $ zig build
/home/phdyex/build/abps/build.zig:86:33: error: no field named 'path' in union 'Build.LazyPath'
        .root_source_file = .{ .path = "extern/zig-clap/clap.zig" },
                                ^~~~
/snap/zig/11625/lib/std/Build.zig:2171:22: note: union declared here
pub const LazyPath = union(enum) {
                     ^~~~~
referenced by:
    runBuild__anon_8822: /snap/zig/11625/lib/std/Build.zig:2116:27
    main: /snap/zig/11625/lib/compiler/build_runner.zig:301:29
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
hardliner66 commented 4 months ago

Thanks for the report.

It still used the old 0.12 build api. I fixed it for 0.13.0 and it should work now. :)