fix x86_64-linux-gnu build

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-03-08 23:44:33 -07:00
parent a433937d39
commit b7fb2057f7
3 changed files with 5 additions and 2 deletions

View file

@ -279,6 +279,9 @@ pub fn build(b: *std.Build) !void {
}
addPaths(&unit_tests.root_module);
// Linux gamemode requires libc.
if (target.result.os.tag == .linux) unit_tests.root_module.link_libc = true;
// Exposes a `test` step to the `zig build --help` menu, providing a way for the user to
// request running the unit tests.
const run_unit_tests = b.addRunArtifact(unit_tests);