Skip to content

Commit e398fef

Browse files
committed
build: support 0.14.0
This drops support for older zig versions.
1 parent aa27cc8 commit e398fef

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
zig-version: ["0.13.0"]
16-
os: [ubuntu-latest, macos-latest, windows-latest]
15+
zig-version: ["0.14.0"]
16+
os: [ubuntu-latest, windows-latest]
1717
include:
18-
- zig-version: "master"
18+
- zig-version: "0.14.0"
1919
check-format: true
2020
os: macos-latest
2121
build-options: "-Dbuild-tests -Dbuild-benchmarks"
22+
23+
- zig-version: "master"
24+
os: macos-latest
25+
2226
runs-on: ${{ matrix.os }}
2327
steps:
2428
- name: Checkout

build.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ pub fn build(b: *std.Build) void {
8181
include_root.path(b, "uv/unix.h"),
8282
"uv/unix.h",
8383
);
84-
if (!tinfo.isAndroid())
84+
if (!tinfo.abi.isAndroid())
8585
lib.linkSystemLibrary("pthread");
8686

87-
if (tinfo.isDarwin()) {
87+
if (tinfo.os.tag.isDarwin()) {
8888
lib.root_module.addCMacro("_DARWIN_UNLIMITED_SELECT", "1");
8989
lib.root_module.addCMacro("_DARWIN_USE_64_BIT_INODE", "1");
9090
lib.addCSourceFiles(.{
@@ -96,7 +96,7 @@ pub fn build(b: *std.Build) void {
9696
include_root.path(b, "uv/darwin.h"),
9797
"uv/darwin.h",
9898
);
99-
} else if (tinfo.isAndroid()) {
99+
} else if (tinfo.abi.isAndroid()) {
100100
lib.root_module.addCMacro("_GNU_SOURCE", "");
101101
lib.linkSystemLibrary("dl");
102102
lib.addCSourceFiles(.{

build.zig.zon

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
.{
2-
.name = "libuv",
2+
.name = .libuv,
3+
.fingerprint = 0x7CB3932CBFAADA86,
34
.version = "1.5.0",
4-
.minimum_zig_version = "0.13.0",
5+
.minimum_zig_version = "0.14.0",
56
.dependencies = .{
67
.libuv = .{
78
.url = "git+https://github.com/libuv/libuv?ref=v1.50.0#8fb9cb919489a48880680a56efecff6a7dfb4504",
8-
.hash = "12207ac22e5e40afe515b7c319237785113c97ee84a75f7c66c1a0e7cc6e743debeb",
9+
.hash = "N-V-__8AAH34QwB6wi5eQK_lFbfDGSN3hRE8l-6Ep198ZsGg",
910
},
1011
},
1112
.paths = .{

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ your_exe.linkLibrary(libuv_dep.artifact("uv"));
3535

3636
## Zig Version Support Matrix
3737

38-
| Refname | libuv Version | Zig `0.13` | Zig `0.14.0-dev` |
39-
|-----------|----------------|------------|------------------|
40-
| | `1.50.0` || |
38+
| Refname | libuv Version | Zig `0.14.0` |
39+
|-----------|----------------|--------------|
40+
| | `1.50.0` ||
4141

4242
[libuv]: https://github.com/libuv

0 commit comments

Comments
 (0)