fix linux build (gamemode requires libc)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e77a5a2ca2
commit
e38a441b69
2 changed files with 6 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue