diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-09-30 14:40:16 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-09-30 14:40:16 -0400 |
| commit | 845f22101b1efb2d8898d8ba7310cd78151a42d5 (patch) | |
| tree | 214478004045621b4a089a7b381bb5934c355aaa /src/main.cpp | |
| parent | d43204c950a24467a85e14fe5ba026e1eac2a19f (diff) | |
| download | zig-845f22101b1efb2d8898d8ba7310cd78151a42d5.tar.gz zig-845f22101b1efb2d8898d8ba7310cd78151a42d5.zip | |
zig test on 64-bit windows runs 32-bit tests
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 2dc500b1bb..ca5e99ed3f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -711,9 +711,7 @@ int main(int argc, char **argv) { codegen_build(g); codegen_link(g, buf_ptr(test_exe_name)); - bool is_native_target = target == nullptr || (target->os == native.os && - target->arch.arch == native.arch.arch && target->arch.sub_arch == native.arch.sub_arch); - if (!is_native_target) { + if (!target_can_exec(&native, target)) { fprintf(stderr, "Created %s but skipping execution because it is non-native.\n", buf_ptr(test_exe_name)); return 0; |
