We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb7095f commit 78e47e8Copy full SHA for 78e47e8
ffi/zig/build.zig
@@ -12,6 +12,18 @@ pub fn build(b: *std.Build) void {
12
const target = b.standardTargetOptions(.{});
13
const optimize = b.standardOptimizeOption(.{});
14
15
+ const lib = b.addStaticLibrary(.{
16
+ .name = "bls-zig",
17
+ .root_source_file = b.path("bls.zig"),
18
+ .target = target,
19
+ .optimize = optimize,
20
+ });
21
+ lib.linkLibC();
22
+ lib.addLibraryPath(b.path("../../lib"));
23
+ lib.linkSystemLibrary("stdc++");
24
+ lib.linkSystemLibrary("bls384_256");
25
+ b.installArtifact(lib);
26
+
27
const exe = b.addExecutable(.{
28
.name = "sample",
29
.root_source_file = b.path("sample.zig"),
0 commit comments