mirror of
https://github.com/jedisct1/minisign.git
synced 2025-04-03 19:07:41 +03:00
Add paths for Homebrew on Apple Silicon
This commit is contained in:
parent
e74428c464
commit
b81f3d4065
1 changed files with 3 additions and 0 deletions
|
@ -9,9 +9,12 @@ pub fn build(b: *std.build.Builder) !void {
|
|||
minisign.setBuildMode(mode);
|
||||
minisign.install();
|
||||
minisign.linkLibC();
|
||||
minisign.addLibPath("/opt/homebrew/lib");
|
||||
minisign.addLibPath("/usr/local/lib");
|
||||
minisign.linkSystemLibrary("sodium");
|
||||
|
||||
minisign.addIncludeDir("src");
|
||||
minisign.addSystemIncludeDir("/opt/homebrew/include");
|
||||
minisign.addSystemIncludeDir("/usr/local/include");
|
||||
minisign.defineCMacro("_GNU_SOURCE", "1");
|
||||
minisign.addCSourceFiles(&.{ "src/base64.c", "src/get_line.c", "src/helpers.c", "src/minisign.c" }, &.{});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue