authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-04-15 19:57:24-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-16 17:36:02-07:00
log4df87b40fdfa221d169812969458c9112510d73f
tree3192ffd588959bbe4201342b7f3156b81f60ec6b
parent7e0c6d7edc538b1648792e73b0c8aab1a35d0bff

tests: fix skip_cross_glibc check

Native targets are, by definition, not cross-compiling targets.

1 files changed, 2 insertions(+), 1 deletions(-)

test/tests.zig+2-1
......@@ -929,7 +929,8 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
929929 if (options.skip_non_native and !is_native)
930930 continue;
931931
932 if (options.skip_cross_glibc and test_target.target.isGnuLibC() and test_target.link_libc == true)
932 if (options.skip_cross_glibc and !test_target.target.isNative() and
933 test_target.target.isGnuLibC() and test_target.link_libc == true)
933934 continue;
934935
935936 if (options.skip_libc and test_target.link_libc == true)