Skip to content

Commit

Permalink
Update code to be compatible with zig 0.14-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JanEricNitschke committed Aug 28, 2024
1 parent 388a76a commit 83ac890
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tictactoe_zig/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ zig-out/
/build/
/build-*/
/docgen_tmp/
.zig-cache/
4 changes: 2 additions & 2 deletions tictactoe_zig/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub fn build(b: *std.Build) void {
.name = "tictactoe_zig",
// In this case the main source file is merely a path, however, in more
// complicated build scripts, this could be a generated file.
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
Expand Down Expand Up @@ -57,7 +57,7 @@ pub fn build(b: *std.Build) void {
// Creates a step for unit testing. This only builds the test executable
// but does not run it.
const unit_tests = b.addTest(.{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
Expand Down

0 comments on commit 83ac890

Please sign in to comment.