From 4df87b40fdfa221d169812969458c9112510d73f Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Sat, 15 Apr 2023 19:57:24 -0400 Subject: [PATCH] tests: fix skip_cross_glibc check Native targets are, by definition, not cross-compiling targets. --- test/tests.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/tests.zig b/test/tests.zig index cb5e848200..015730de93 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -929,7 +929,8 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { if (options.skip_non_native and !is_native) continue; - if (options.skip_cross_glibc and test_target.target.isGnuLibC() and test_target.link_libc == true) + if (options.skip_cross_glibc and !test_target.target.isNative() and + test_target.target.isGnuLibC() and test_target.link_libc == true) continue; if (options.skip_libc and test_target.link_libc == true)