Skip to content

Commit 71c8035

Browse files
authored
Merge pull request #154 from lightpanda-io/wp/mrdimidium/siso
Migrate from ninja to siso
2 parents 0ee1da8 + 3d51caf commit 71c8035

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

build.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ const GnArgs = struct {
2626
var args: std.ArrayList(u8) = .empty;
2727
const gpa = b.allocator;
2828

29+
// Use modern siso instead of outdated ninja to speed up the build.
30+
try args.appendSlice(gpa, "use_siso=true\n");
31+
2932
// official builds depend on pgo
3033
try args.appendSlice(gpa, "is_official_build=false\n");
3134
try args.appendSlice(gpa, b.fmt("is_debug={}\n", .{self.is_debug}));
@@ -398,7 +401,7 @@ fn buildV8(
398401
gn_run.step.dependOn(&bootstrapped_v8.step);
399402

400403
const ninja_run = b.addSystemCommand(&.{
401-
getDepotToolExePath(b, depot_tools_dir, "ninja"),
404+
getDepotToolExePath(b, depot_tools_dir, "autoninja"),
402405
"-C",
403406
out_dir,
404407
"c_v8",

build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
.fingerprint = 0x10be7411eb47d7c5,
66
.dependencies = .{
77
.depot_tools = .{
8-
.url = "git+https://github.com/rust-skia/depot_tools#8efa575d754b8703d99b0f827528e45aeaa167aa",
9-
.hash = "N-V-__8AANgeXQAuTDjDItrtITfVslPonFWB-h3Az2C0-2AM",
8+
.url = "https://chromium.googlesource.com/chromium/tools/depot_tools.git/+archive/4ce8ba39a3488397a2d1494f167020f21de502f3.tar.gz",
9+
.hash = "N-V-__8AABDOXwDW4TLrTiydikRCN2ym9hJI1GKGR09ZLBvY",
1010
},
1111
},
1212
}

0 commit comments

Comments
 (0)