Skip to content

Commit fb166da

Browse files
committed
fixup! Add initial zig bindings.
1 parent 1236c66 commit fb166da

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bindings/zig/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ and add an equivalent of the following line to your build.zig prior to `b.instal
1212
```
1313
exe.root_module.addImport("blst", b.dependency("blst", .{}).module("blst"));
1414
```
15-
You should now be able to `@import("blst")` in your application code. The abovementioned fetch command can be used to update the reference.
15+
You should now be able to `@import("blst")` in your application code. The abovementioned fetch command can be used to update the git reference.

build.zig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ pub fn build(b: *std.Build) void {
3737
.flags = cflags
3838
}),
3939
}
40+
if (target.result.os.tag == .windows) {
41+
lib.linkLibC();
42+
}
4043

4144
const tests = b.addTest(.{
4245
.root_module = b.createModule(.{

0 commit comments

Comments
 (0)