Skip to content

Commit 8c4a984

Browse files
peterhellbergJerwuQu
authored andcommitted
example: Use b.path
1 parent b563e29 commit 8c4a984

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/build.zig

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ const std = @import("std");
33
pub fn build(b: *std.Build) !void {
44
const exe = b.addExecutable(.{
55
.name = "cart",
6-
.root_source_file = .{ .path = "src/main.zig" },
6+
.root_source_file = b.path("src/main.zig"),
77
.target = b.resolveTargetQuery(.{
88
.cpu_arch = .wasm32,
99
.os_tag = .freestanding,
1010
}),
1111
.optimize = .ReleaseSmall, // b.standardOptimizeOption(.{}),
1212
});
13-
exe.addIncludePath(.{ .path = "../runtime/" });
13+
exe.addIncludePath(b.path("../runtime/"));
1414
exe.addCSourceFile(.{
15-
.file = .{ .path = "../runtime/w4on2.c" },
15+
.file = b.path("../runtime/w4on2.c"),
1616
.flags = &.{"-D__W4ON2_WASM4_TRACEF"},
1717
});
1818

0 commit comments

Comments
 (0)