Skip to content

Commit ee3fe80

Browse files
committed
chore(version): update minimum supported zig to 0.14.1
Signed-off-by: Bernard Assan <[email protected]>
1 parent 2c21016 commit ee3fe80

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
zig-version: ["master", "0.14.0"]
21+
zig-version: ["master", "0.14.1"]
2222
os: [ubuntu-latest, macos-latest, windows-latest]
2323
optimize: [ReleaseSafe, ReleaseFast]
2424
build-options: ["-Dlto"]
@@ -45,7 +45,7 @@ jobs:
4545
strategy:
4646
fail-fast: false
4747
matrix:
48-
zig-version: ["master", "0.14.0"]
48+
zig-version: ["master", "0.14.1"]
4949
os: [ubuntu-latest]
5050

5151
runs-on: ${{ matrix.os }}
@@ -71,7 +71,7 @@ jobs:
7171
strategy:
7272
fail-fast: false
7373
matrix:
74-
zig-version: ["master", "0.14.0"]
74+
zig-version: ["master", "0.14.1"]
7575
os: [ubuntu-latest, macos-latest, windows-latest]
7676

7777
runs-on: ${{ matrix.os }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ Using `lmdb` artifacts and module in your project
4646

4747
## Supported on Linux, macOS and Windows
4848
- Zig 0.15.0-dev
49-
- Zig 0.14.0
49+
- Zig 0.14.1

build.zig

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ const cflags = .{
1414
"-std=c23",
1515
};
1616

17+
const sanitize_c = if (builtin.zig_version.order(.{
18+
.major = 0,
19+
.minor = 14,
20+
.patch = 1,
21+
}) == .gt) .off else false;
22+
1723
pub fn build(b: *Build) void {
1824
if (comptime !checkVersion())
1925
@compileError("Update your zig toolchain to >= 0.13.0");
@@ -64,7 +70,7 @@ const BuildLmdb = struct {
6470
.optimize = opt.optimize,
6571
.link_libc = true,
6672
.strip = opt.strip,
67-
.sanitize_c = .off,
73+
.sanitize_c = sanitize_c,
6874
}),
6975
.use_llvm = opt.use_llvm(),
7076
.use_lld = opt.use_lld(),
@@ -136,7 +142,7 @@ const BuildLmdb = struct {
136142
.optimize = opt_.optimize,
137143
.link_libc = true,
138144
.strip = opt_.strip,
139-
.sanitize_c = .off,
145+
.sanitize_c = sanitize_c,
140146
}),
141147
.use_llvm = opt_.use_llvm(),
142148
.use_lld = opt_.use_lld(),
@@ -242,7 +248,7 @@ const BuildLmdb = struct {
242248
.target = opt.target,
243249
.optimize = .Debug,
244250
.link_libc = true,
245-
.sanitize_c = .off,
251+
.sanitize_c = sanitize_c,
246252
}),
247253
.use_lld = opt.use_lld(),
248254
});
@@ -327,7 +333,7 @@ fn checkVersion() bool {
327333
return false;
328334
}
329335

330-
const needed_version = std.SemanticVersion{ .major = 0, .minor = 14, .patch = 0 };
336+
const needed_version = std.SemanticVersion{ .major = 0, .minor = 14, .patch = 1 };
331337
const version = builtin.zig_version;
332338
const order = version.order(needed_version);
333339
return order != .lt;

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.{
22
.name = .lmdb,
33
.version = "0.9.31+2",
4-
.minimum_zig_version = "0.14.0",
4+
.minimum_zig_version = "0.14.1",
55
.fingerprint = 0xb2966103474360ca,
66
.dependencies = .{
77
.lmdb = .{

0 commit comments

Comments
 (0)