mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 14:43:28 +00:00
Zig 0.14 compatibility
This commit is contained in:
committed by
Pierre Tachoire
parent
17d3d620ff
commit
21c9dde858
@@ -108,7 +108,7 @@ pub fn build(b: *std.Build) !void {
|
||||
// compile
|
||||
const tests = b.addTest(.{
|
||||
.root_source_file = b.path("src/main_tests.zig"),
|
||||
.test_runner = b.path("src/main_tests.zig"),
|
||||
.test_runner = .{ .path = b.path("src/main_tests.zig"), .mode = .simple },
|
||||
.target = target,
|
||||
.optimize = mode,
|
||||
});
|
||||
@@ -134,7 +134,7 @@ pub fn build(b: *std.Build) !void {
|
||||
// compile
|
||||
const unit_tests = b.addTest(.{
|
||||
.root_source_file = b.path("src/unit_tests.zig"),
|
||||
.test_runner = b.path("src/unit_tests.zig"),
|
||||
.test_runner = .{ .path = b.path("src/unit_tests.zig"), .mode = .simple },
|
||||
.target = target,
|
||||
.optimize = mode,
|
||||
});
|
||||
@@ -195,7 +195,7 @@ fn common(
|
||||
step.root_module.addImport("asyncio", asyncio);
|
||||
|
||||
const tlsmod = b.addModule("tls", .{
|
||||
.root_source_file = b.path("vendor/tls.zig/src/main.zig"),
|
||||
.root_source_file = b.path("vendor/tls.zig/src/root.zig"),
|
||||
});
|
||||
step.root_module.addImport("tls", tlsmod);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user