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

View File

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

View File

@@ -35,8 +35,9 @@ your_exe.linkLibrary(libuv_dep.artifact("uv"));
## Zig Version Support Matrix ## Zig Version Support Matrix
| Refname | libuv Version | Zig `0.14.0` | | Refname | libuv Version | Compatible Zig Version(s) |
|-----------|----------------|--------------| |-----------|----------------|---------------------------|
| | `1.50.0` | | | `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 [libuv]: https://github.com/libuv