diff --git a/test/src/Cases.zig b/test/src/Cases.zig index b821aad447dd99a4337b873ffb88a69ebdfb3b21..360a0fda9241ec7e3d3b4622a5facdd0b3f04161 100644 --- a/test/src/Cases.zig +++ b/test/src/Cases.zig @@ -572,7 +572,10 @@ pub fn lowerToTranslateCSteps( }); translate_c.step.name = b.fmt("{s} translate-c", .{annotated_case_name}); - const run_exe = translate_c.addExecutable(.{}); + const run_exe = b.addExecutable(.{ + .name = "translated_c", + .root_module = translate_c.createModule(), + }); run_exe.step.name = b.fmt("{s} build-exe", .{annotated_case_name}); run_exe.linkLibC(); const run = b.addRunArtifact(run_exe); diff --git a/test/src/RunTranslatedC.zig b/test/src/RunTranslatedC.zig index 59f87c6a8298d536e63a71b0ebef5afcb7fb944d..528df69c4b72d9a92d2af7a37764ed0267bd49dc 100644 --- a/test/src/RunTranslatedC.zig +++ b/test/src/RunTranslatedC.zig @@ -84,7 +84,10 @@ pub fn addCase(self: *RunTranslatedCContext, case: *const TestCase) void { }); translate_c.step.name = b.fmt("{s} translate-c", .{annotated_case_name}); - const exe = translate_c.addExecutable(.{}); + const exe = b.addExecutable(.{ + .name = "translated_c", + .root_module = translate_c.createModule(), + }); exe.step.name = b.fmt("{s} build-exe", .{annotated_case_name}); exe.linkLibC(); const run = b.addRunArtifact(exe);