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 13, 2024
1 parent fae0bd5 commit e591107
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 e591107

Please sign in to comment.