Skip to content

Commit a493fe2

Browse files
committed
update for compatibility with 0.15.2
1 parent 08c8d6b commit a493fe2

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ pub fn build(b: *std.Build) !void {
4444
}
4545
```
4646
# Requirements
47-
The target version of Zig is ```0.14```. It may work with earlier versions, but has not been tested.
47+
The target version of Zig is ```0.15.2```. It may work with earlier versions, but has not been tested.

‎build.zig‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ pub fn build(b: *std.Build) void {
55
const target = b.standardTargetOptions(.{});
66
const optimize = b.standardOptimizeOption(.{});
77

8-
const lib = b.addStaticLibrary(.{
8+
const lib = b.addLibrary(.{
99
.name = "zfp",
10-
.target = target,
11-
.optimize = optimize,
10+
.linkage = .static,
11+
.root_module = b.createModule(.{
12+
.target = target,
13+
.optimize = optimize,
14+
.pic = true,
15+
.link_libc = true,
16+
}),
1217
});
1318

1419
lib.linkLibC();

0 commit comments

Comments
 (0)