From a26f2c8e5dca101220f0fa7138b2e50ff59ed47e Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 11 Jan 2023 01:27:48 +0100 Subject: [PATCH] Update build.zig for zig 0.10 --- build.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.zig b/build.zig index e5fa85c..afa2612 100644 --- a/build.zig +++ b/build.zig @@ -9,13 +9,13 @@ 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.addLibraryPath("/opt/homebrew/lib"); + minisign.addLibraryPath("/usr/local/lib"); minisign.linkSystemLibrary("sodium"); - minisign.addIncludeDir("src"); - minisign.addSystemIncludeDir("/opt/homebrew/include"); - minisign.addSystemIncludeDir("/usr/local/include"); + minisign.addIncludePath("src"); + minisign.addSystemIncludePath("/opt/homebrew/include"); + minisign.addSystemIncludePath("/usr/local/include"); minisign.defineCMacro("_GNU_SOURCE", "1"); minisign.addCSourceFiles(&.{ "src/base64.c", "src/get_line.c", "src/helpers.c", "src/minisign.c" }, &.{}); }