Skip to content

Commit b5f6239

Browse files
committed
build.zig: update to b.path API
1 parent 1ddca31 commit b5f6239

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ pub fn build(b: *std.Build) void {
1212
.optimize = optimize,
1313
});
1414

15-
exe.addIncludePath(.{ .path = "include" });
16-
exe.addIncludePath(.{ .path = "asm" });
17-
exe.addIncludePath(.{ .path = "x86" });
18-
exe.addIncludePath(.{ .path = "output" });
15+
exe.addIncludePath(b.path("include"));
16+
exe.addIncludePath(b.path("asm"));
17+
exe.addIncludePath(b.path("x86"));
18+
exe.addIncludePath(b.path("output"));
1919
exe.addConfigHeader(b.addConfigHeader(.{
2020
.style = .blank,
2121
.include_path = "version.h",
@@ -28,7 +28,7 @@ pub fn build(b: *std.Build) void {
2828
.NASM_VER = "2.16.01",
2929
}));
3030
exe.addConfigHeader(b.addConfigHeader(.{
31-
.style = .{ .autoconf = .{ .path = "config/config.h.in" } },
31+
.style = .{ .autoconf = b.path("config/config.h.in") },
3232
.include_path = "config/config.h",
3333
}, .{
3434
.ABORT_ON_PANIC = have(optimize == .Debug),

0 commit comments

Comments
 (0)