We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b563e29 commit 8c4a984Copy full SHA for 8c4a984
example/build.zig
@@ -3,16 +3,16 @@ const std = @import("std");
3
pub fn build(b: *std.Build) !void {
4
const exe = b.addExecutable(.{
5
.name = "cart",
6
- .root_source_file = .{ .path = "src/main.zig" },
+ .root_source_file = b.path("src/main.zig"),
7
.target = b.resolveTargetQuery(.{
8
.cpu_arch = .wasm32,
9
.os_tag = .freestanding,
10
}),
11
.optimize = .ReleaseSmall, // b.standardOptimizeOption(.{}),
12
});
13
- exe.addIncludePath(.{ .path = "../runtime/" });
+ exe.addIncludePath(b.path("../runtime/"));
14
exe.addCSourceFile(.{
15
- .file = .{ .path = "../runtime/w4on2.c" },
+ .file = b.path("../runtime/w4on2.c"),
16
.flags = &.{"-D__W4ON2_WASM4_TRACEF"},
17
18
0 commit comments