build: support 0.14.0
This drops support for older zig versions.
This commit is contained in:
parent
aa27cc803c
commit
e398fefdf6
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
@ -12,13 +12,17 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
zig-version: ["0.13.0"]
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
zig-version: ["0.14.0"]
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
include:
|
||||
- zig-version: "master"
|
||||
- zig-version: "0.14.0"
|
||||
check-format: true
|
||||
os: macos-latest
|
||||
build-options: "-Dbuild-tests -Dbuild-benchmarks"
|
||||
|
||||
- zig-version: "master"
|
||||
os: macos-latest
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
@ -81,10 +81,10 @@ pub fn build(b: *std.Build) void {
|
||||
include_root.path(b, "uv/unix.h"),
|
||||
"uv/unix.h",
|
||||
);
|
||||
if (!tinfo.isAndroid())
|
||||
if (!tinfo.abi.isAndroid())
|
||||
lib.linkSystemLibrary("pthread");
|
||||
|
||||
if (tinfo.isDarwin()) {
|
||||
if (tinfo.os.tag.isDarwin()) {
|
||||
lib.root_module.addCMacro("_DARWIN_UNLIMITED_SELECT", "1");
|
||||
lib.root_module.addCMacro("_DARWIN_USE_64_BIT_INODE", "1");
|
||||
lib.addCSourceFiles(.{
|
||||
@ -96,7 +96,7 @@ pub fn build(b: *std.Build) void {
|
||||
include_root.path(b, "uv/darwin.h"),
|
||||
"uv/darwin.h",
|
||||
);
|
||||
} else if (tinfo.isAndroid()) {
|
||||
} else if (tinfo.abi.isAndroid()) {
|
||||
lib.root_module.addCMacro("_GNU_SOURCE", "");
|
||||
lib.linkSystemLibrary("dl");
|
||||
lib.addCSourceFiles(.{
|
||||
|
@ -1,11 +1,12 @@
|
||||
.{
|
||||
.name = "libuv",
|
||||
.name = .libuv,
|
||||
.fingerprint = 0x7CB3932CBFAADA86,
|
||||
.version = "1.5.0",
|
||||
.minimum_zig_version = "0.13.0",
|
||||
.minimum_zig_version = "0.14.0",
|
||||
.dependencies = .{
|
||||
.libuv = .{
|
||||
.url = "git+https://github.com/libuv/libuv?ref=v1.50.0#8fb9cb919489a48880680a56efecff6a7dfb4504",
|
||||
.hash = "12207ac22e5e40afe515b7c319237785113c97ee84a75f7c66c1a0e7cc6e743debeb",
|
||||
.hash = "N-V-__8AAH34QwB6wi5eQK_lFbfDGSN3hRE8l-6Ep198ZsGg",
|
||||
},
|
||||
},
|
||||
.paths = .{
|
||||
|
@ -35,8 +35,8 @@ your_exe.linkLibrary(libuv_dep.artifact("uv"));
|
||||
|
||||
## Zig Version Support Matrix
|
||||
|
||||
| Refname | libuv Version | Zig `0.13` | Zig `0.14.0-dev` |
|
||||
|-----------|----------------|------------|------------------|
|
||||
| | `1.50.0` | ✅ | ✅ |
|
||||
| Refname | libuv Version | Zig `0.14.0` |
|
||||
|-----------|----------------|--------------|
|
||||
| | `1.50.0` | ✅ |
|
||||
|
||||
[libuv]: https://github.com/libuv
|
||||
|
Loading…
x
Reference in New Issue
Block a user