Skip to content

Commit

Permalink
replace zig build addIncludeDir with addIncludePath
Browse files Browse the repository at this point in the history
  • Loading branch information
rupurt committed Feb 14, 2024
1 parent dc64496 commit 5e2d2aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ pub fn setupOdbcDependencies(step: *std.Build.Step.Compile) void {

const odbc_library_name = if (builtin.os.tag == .windows) "odbc32" else "odbc";
if (builtin.os.tag == .macos) {
step.addIncludeDir("/usr/local/include");
step.addIncludeDir("/usr/local/lib");
step.addIncludePath(.{ .path = "/usr/local/include" });
step.addIncludePath(.{ .path = "/usr/local/lib" });
}
step.linkSystemLibrary(odbc_library_name);
}

0 comments on commit 5e2d2aa

Please sign in to comment.