| ... | ... | @@ -545,9 +545,6 @@ pub fn lowerToTranslateCSteps( |
| 545 | 545 | target: std.Build.ResolvedTarget, |
| 546 | 546 | translate_c_options: TranslateCOptions, |
| 547 | 547 | ) void { |
| 548 | | const host = std.zig.system.resolveTargetQuery(.{}) catch |err| |
| 549 | | std.debug.panic("unable to detect native host: {s}\n", .{@errorName(err)}); |
| 550 | | |
| 551 | 548 | const tests = @import("../tests.zig"); |
| 552 | 549 | const test_translate_c_step = b.step("test-translate-c", "Run the C translation tests"); |
| 553 | 550 | if (!translate_c_options.skip_translate_c) { |
| ... | ... | @@ -573,11 +570,6 @@ pub fn lowerToTranslateCSteps( |
| 573 | 570 | continue; // Pass test. |
| 574 | 571 | } |
| 575 | 572 | |
| 576 | | if (getExternalExecutor(host, &case.target.result, .{ .link_libc = true }) != .native) { |
| 577 | | // We wouldn't be able to run the compiled C code. |
| 578 | | continue; // Pass test. |
| 579 | | } |
| 580 | | |
| 581 | 573 | const write_src = b.addWriteFiles(); |
| 582 | 574 | const file_source = write_src.add("tmp.c", case.input); |
| 583 | 575 | |
| ... | ... | @@ -596,6 +588,7 @@ pub fn lowerToTranslateCSteps( |
| 596 | 588 | const run = b.addRunArtifact(run_exe); |
| 597 | 589 | run.step.name = b.fmt("{s} run", .{annotated_case_name}); |
| 598 | 590 | run.expectStdOutEqual(output); |
| 591 | run.skip_foreign_checks = true; |
| 599 | 592 | |
| 600 | 593 | test_run_translated_c_step.dependOn(&run.step); |
| 601 | 594 | }, |