Lightpanda: the headless browser designed for AI and automation
glibc build version
Karl Seguina3ab6b0b7eac
diff --git a/build.zig b/build.zigindex e5da40e6c..2b0a51322 100644--- a/build.zig+++ b/build.zig@@ -69,7 +69,7 @@ pub fn build(b: *Build) !void {.os_tag = .linux,.abi = .gnu,// Explicit version => bundled CRT, https://codeberg.org/ziglang/zig/issues/31272- .glibc_version = b.graph.host.result.os.version_range.linux.glibc,+ .glibc_version = devFastGlibcVersion(b),}) else requested_target;// Without an explicit -Dprebuilt_v8_path, pick up whatever `make@@ -238,6 +238,12 @@ fn addExe(b: *Build, config: ExeConfig, name: []const u8, check_name: []const u8return exe;}+fn devFastGlibcVersion(b: *Build) std.SemanticVersion {+ const host = b.graph.host.result.os.version_range.linux.glibc;+ const newest_known: std.SemanticVersion = .{ .major = 2, .minor = 43, .patch = 0 };+ return if (host.order(newest_known) == .gt) newest_known else host;+}+/// Looks for the prebuilt V8 that `make download-v8` caches. The cache/// path is keyed on the zig-v8 release tag, read from the install action so/// it cannot drift from CI (the Makefile reads the same source of truth).