Skip to content

Commit

Permalink
build.zig updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane authored Feb 26, 2024
1 parent f4896a1 commit fc2a0aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ fn buildTest(b: *std.Build, info: BuildInfo) void {
.optimize = info.lib.optimize,
.target = info.lib.target,
});
test_exe.addIncludePath("include");
test_exe.addIncludePath("benchmark");
test_exe.addIncludePath("test/_include");
test_exe.addCSourceFile(info.path, cxxFlags);
test_exe.addIncludePath(.{ .path = "include" });
test_exe.addIncludePath(.{ .path = "benchmark" });
test_exe.addIncludePath(.{ .path = "test/_include" });
test_exe.addCSourceFile(.{ .file = .{ .path = info.path }, .flags = cxxFlags });
test_exe.linkLibCpp();
b.installArtifact(test_exe);

Expand All @@ -194,7 +194,7 @@ const cxxFlags: []const []const u8 = &.{
};

const BuildInfo = struct {
lib: *std.Build.CompileStep,
lib: *std.Build.Step.Compile,
path: []const u8,

fn filename(self: BuildInfo) []const u8 {
Expand Down

0 comments on commit fc2a0aa

Please sign in to comment.