Skip to content

Commit

Permalink
update build.zig examples in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Apr 24, 2024
1 parent a9860f4 commit 18f4f3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub fn build(b: *Build) !void {
.name = "hello",
.target = target,
.optimize = optimize,
.root_source_file = .{ .path = "src/hello.zig" },
.root_source_file = b.path("src/hello.zig"),
});
hello.root_module.addImport("sokol", dep_sokol.module("sokol"));
b.installArtifact(hello);
Expand Down Expand Up @@ -174,7 +174,7 @@ fn buildNative(b: *Build, target: Build.ResolvedTarget, optimize: OptimizeMode,
.name = "pacman",
.target = target,
.optimize = optimize,
.root_source_file = .{ .path = "src/pacman.zig" },
.root_source_file = b.path("src/pacman.zig"),
});
pacman.root_module.addImport("sokol", dep_sokol.module("sokol"));
b.installArtifact(pacman);
Expand All @@ -188,7 +188,7 @@ fn buildWeb(b: *Build, target: Build.ResolvedTarget, optimize: OptimizeMode, dep
.name = "pacman",
.target = target,
.optimize = optimize,
.root_source_file = .{ .path = "src/pacman.zig" },
.root_source_file = b.path("src/pacman.zig"),
});
pacman.root_module.addImport("sokol", dep_sokol.module("sokol"));
Expand Down

0 comments on commit 18f4f3d

Please sign in to comment.