mirror of
https://github.com/jedisct1/minisign.git
synced 2025-04-03 02:47:41 +03:00
Zig 0.12 compat
This commit is contained in:
parent
8aef018182
commit
7d1116c5cc
1 changed files with 6 additions and 1 deletions
|
@ -18,7 +18,12 @@ pub fn build(b: *std.build.Builder) !void {
|
|||
minisign.addSystemIncludePath(.{ .path = "/opt/homebrew/include" });
|
||||
minisign.addSystemIncludePath(.{ .path = "/usr/local/include" });
|
||||
minisign.defineCMacro("_GNU_SOURCE", "1");
|
||||
minisign.addCSourceFiles(&.{ "src/base64.c", "src/get_line.c", "src/helpers.c", "src/minisign.c" }, &.{});
|
||||
const source_files = &.{ "src/base64.c", "src/get_line.c", "src/helpers.c", "src/minisign.c" };
|
||||
if (@hasDecl(std.Build.Step.Compile, "AddCSourceFilesOptions")) {
|
||||
minisign.addCSourceFiles(.{ .files = source_files });
|
||||
} else {
|
||||
minisign.addCSourceFiles(source_files, &.{});
|
||||
}
|
||||
|
||||
b.installArtifact(minisign);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue