| ... | @@ -545,9 +545,6 @@ pub fn lowerToTranslateCSteps( | ... | @@ -545,9 +545,6 @@ pub fn lowerToTranslateCSteps( |
| 545 | target: std.Build.ResolvedTarget, | 545 | target: std.Build.ResolvedTarget, |
| 546 | translate_c_options: TranslateCOptions, | 546 | translate_c_options: TranslateCOptions, |
| 547 | ) void { | 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 | const tests = @import("../tests.zig"); | 548 | const tests = @import("../tests.zig"); |
| 552 | const test_translate_c_step = b.step("test-translate-c", "Run the C translation tests"); | 549 | const test_translate_c_step = b.step("test-translate-c", "Run the C translation tests"); |
| 553 | if (!translate_c_options.skip_translate_c) { | 550 | if (!translate_c_options.skip_translate_c) { |
| ... | @@ -573,11 +570,6 @@ pub fn lowerToTranslateCSteps( | ... | @@ -573,11 +570,6 @@ pub fn lowerToTranslateCSteps( |
| 573 | continue; // Pass test. | 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 | const write_src = b.addWriteFiles(); | 573 | const write_src = b.addWriteFiles(); |
| 582 | const file_source = write_src.add("tmp.c", case.input); | 574 | const file_source = write_src.add("tmp.c", case.input); |
| 583 | | 575 | |
| ... | @@ -596,6 +588,7 @@ pub fn lowerToTranslateCSteps( | ... | @@ -596,6 +588,7 @@ pub fn lowerToTranslateCSteps( |
| 596 | const run = b.addRunArtifact(run_exe); | 588 | const run = b.addRunArtifact(run_exe); |
| 597 | run.step.name = b.fmt("{s} run", .{annotated_case_name}); | 589 | run.step.name = b.fmt("{s} run", .{annotated_case_name}); |
| 598 | run.expectStdOutEqual(output); | 590 | run.expectStdOutEqual(output); |
| | 591 | run.skip_foreign_checks = true; |
| 599 | | 592 | |
| 600 | test_run_translated_c_step.dependOn(&run.step); | 593 | test_run_translated_c_step.dependOn(&run.step); |
| 601 | }, | 594 | }, |