add Zig 0.15.0-dev compatibility

This commit is contained in:
Loris Cro
2025-07-17 23:41:41 +02:00
parent fead2457be
commit ff2bf737d1
3 changed files with 19 additions and 11 deletions

View File

@@ -14,10 +14,13 @@ pub fn build(b: *std.Build) void {
const upstream = b.dependency("libuv", .{});
const lib = b.addStaticLibrary(.{
const lib = b.addLibrary(.{
.name = "uv",
.target = target,
.optimize = optimize,
.linkage = .static,
.root_module = b.createModule(.{
.target = target,
.optimize = optimize,
}),
});
const cflags: []const []const u8 = &.{
@@ -252,8 +255,10 @@ pub fn build(b: *std.Build) void {
if (build_tests) {
const tests = b.addExecutable(.{
.name = "uv_run_tests_a",
.target = target,
.optimize = optimize,
.root_module = b.createModule(.{
.target = target,
.optimize = optimize,
}),
});
tests.addCSourceFiles(.{
.root = test_root,
@@ -286,8 +291,10 @@ pub fn build(b: *std.Build) void {
if (build_benchmarks) {
const benchmarks = b.addExecutable(.{
.name = "uv_run_benchmarks_a",
.target = target,
.optimize = optimize,
.root_module = b.createModule(.{
.target = target,
.optimize = optimize,
}),
});
benchmarks.addCSourceFiles(.{

View File

@@ -1,7 +1,7 @@
.{
.name = .libuv,
.fingerprint = 0x7CB3932CBFAADA86,
.version = "1.5.0",
.version = "1.50.0",
.minimum_zig_version = "0.14.0",
.dependencies = .{
.libuv = .{

View File

@@ -35,8 +35,9 @@ your_exe.linkLibrary(libuv_dep.artifact("uv"));
## Zig Version Support Matrix
| Refname | libuv Version | Zig `0.14.0` |
|-----------|----------------|--------------|
| | `1.50.0` | |
| Refname | libuv Version | Compatible Zig Version(s) |
|-----------|----------------|---------------------------|
| `v1.50.0` | `1.50.0` | `0.14.0`, `0.15.0-dev` |
| `main` | `1.51.0` | `0.14.0`, `0.15.0-dev` |
[libuv]: https://github.com/libuv