Skip to content

Commit

Permalink
zig: bump to 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryp committed Jul 9, 2024
1 parent 393671e commit 8ea4b41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build
on: [push, pull_request]
env:
zig_version: 0.12.1
zig_version: 0.13.0

jobs:
build:
Expand Down
8 changes: 4 additions & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub fn build(b: *std.Build) void {

const exe = b.addExecutable(.{
.name = "gbemu",
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.optimize = optimize,
.target = target,
});
Expand All @@ -24,8 +24,8 @@ pub fn build(b: *std.Build) void {
const client_cpp = "external/tracy/public/TracyClient.cpp";
const tracy_c_flags: []const []const u8 = &[_][]const u8{ "-DTRACY_ENABLE=1", "-fno-sanitize=undefined" };

exe.root_module.addIncludePath(.{ .path = tracy_path });
exe.root_module.addCSourceFile(.{ .file = .{ .path = client_cpp }, .flags = tracy_c_flags });
exe.root_module.addIncludePath(b.path(tracy_path));
exe.root_module.addCSourceFile(.{ .file = b.path(client_cpp), .flags = tracy_c_flags });

exe.linkSystemLibrary("c++");
exe.linkLibC();
Expand All @@ -48,7 +48,7 @@ pub fn build(b: *std.Build) void {
// Test
const test_a = b.addTest(.{
.name = "test",
.root_source_file = .{ .path = "src/gb/test.zig" },
.root_source_file = b.path("src/gb/test.zig"),
.optimize = optimize,
});

Expand Down

0 comments on commit 8ea4b41

Please sign in to comment.