fix linux build (gamemode requires libc)

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-03-04 20:53:27 -07:00 committed by Stephen Gutekanst
parent e77a5a2ca2
commit e38a441b69
2 changed files with 6 additions and 1 deletions

View file

@ -58,6 +58,9 @@ pub fn build(b: *std.Build) !void {
});
module.addImport("build-options", build_options.createModule());
if (want_mach) {
// Linux gamemode requires libc.
if (target.result.os.tag == .linux) module.link_libc = true;
// TODO(Zig 2024.03): use b.lazyDependency
const mach_core_dep = b.dependency("mach_core", .{
.target = target,