build: fix test build

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-04-19 17:08:36 -07:00
parent d2179e8f2c
commit 09c01a79b0

View file

@ -301,6 +301,7 @@ pub fn build(b: *std.Build) !void {
unit_tests.root_module.addImport(e.key_ptr.*, e.value_ptr.*); unit_tests.root_module.addImport(e.key_ptr.*, e.value_ptr.*);
} }
addPaths(&unit_tests.root_module); addPaths(&unit_tests.root_module);
link(b, unit_tests, &unit_tests.root_module);
// Linux gamemode requires libc. // Linux gamemode requires libc.
if (target.result.os.tag == .linux) unit_tests.root_module.link_libc = true; if (target.result.os.tag == .linux) unit_tests.root_module.link_libc = true;