zig test on 64-bit windows runs 32-bit tests

This commit is contained in:
Andrew Kelley
2017-09-30 14:40:16 -04:00
parent d43204c950
commit 845f22101b
4 changed files with 29 additions and 4 deletions

View File

@@ -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;