From b81f3d4065066994a1e61de7d1d1814817adb1d5 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 30 Nov 2021 09:22:24 +0100 Subject: [PATCH] Add paths for Homebrew on Apple Silicon --- build.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.zig b/build.zig index 237e498..e5fa85c 100644 --- a/build.zig +++ b/build.zig @@ -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" }, &.{});