diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-04-15 19:57:24 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-04-16 17:36:02 -0700 |
| commit | 4df87b40fdfa221d169812969458c9112510d73f (patch) | |
| tree | 3192ffd588959bbe4201342b7f3156b81f60ec6b /test/tests.zig | |
| parent | 7e0c6d7edc538b1648792e73b0c8aab1a35d0bff (diff) | |
| download | zig-4df87b40fdfa221d169812969458c9112510d73f.tar.gz zig-4df87b40fdfa221d169812969458c9112510d73f.zip | |
tests: fix skip_cross_glibc check
Native targets are, by definition, not cross-compiling targets.
Diffstat (limited to 'test/tests.zig')
| -rw-r--r-- | test/tests.zig | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
