mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-16 16:28:58 +00:00
Merge pull request #1240 from lightpanda-io/nikneym/html5ever-build-optimize
html5ever: prefer `dev` build only on `Debug` optimization
This commit is contained in:
11
build.zig
11
build.zig
@@ -65,9 +65,9 @@ pub fn build(b: *Build) !void {
|
|||||||
};
|
};
|
||||||
|
|
||||||
break :blk switch (optimize) {
|
break :blk switch (optimize) {
|
||||||
// Consider these as dev builds.
|
// Prefer dev build on debug option.
|
||||||
.Debug, .ReleaseSafe => argv[0 .. argv.len - 1],
|
.Debug => argv[0 .. argv.len - 1],
|
||||||
.ReleaseFast, .ReleaseSmall => argv,
|
else => argv,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
const html5ever_exec_cargo = b.addSystemCommand(html5ever_argv);
|
const html5ever_exec_cargo = b.addSystemCommand(html5ever_argv);
|
||||||
@@ -94,8 +94,9 @@ pub fn build(b: *Build) !void {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const html5ever_obj = switch (optimize) {
|
const html5ever_obj = switch (optimize) {
|
||||||
.Debug, .ReleaseSafe => b.getInstallPath(.prefix, "html5ever/debug/liblitefetch_html5ever.a"),
|
.Debug => b.getInstallPath(.prefix, "html5ever/debug/liblitefetch_html5ever.a"),
|
||||||
.ReleaseFast, .ReleaseSmall => b.getInstallPath(.prefix, "html5ever/release/liblitefetch_html5ever.a"),
|
// Release builds.
|
||||||
|
else => b.getInstallPath(.prefix, "html5ever/release/liblitefetch_html5ever.a"),
|
||||||
};
|
};
|
||||||
|
|
||||||
lightpanda_module.addObjectFile(.{ .cwd_relative = html5ever_obj });
|
lightpanda_module.addObjectFile(.{ .cwd_relative = html5ever_obj });
|
||||||
|
|||||||
Reference in New Issue
Block a user