| ... | @@ -433,7 +433,10 @@ fn buildOutputType( | ... | @@ -433,7 +433,10 @@ fn buildOutputType( |
| 433 | std.debug.print("-fno-emit-bin not supported yet", .{}); | 433 | std.debug.print("-fno-emit-bin not supported yet", .{}); |
| 434 | process.exit(1); | 434 | process.exit(1); |
| 435 | }, | 435 | }, |
| 436 | .yes_default_path => try std.fmt.allocPrint(arena, "{}.c", .{root_name}), | 436 | .yes_default_path => if (cbe) |
| | 437 | try std.fmt.allocPrint(arena, "{}.c", .{root_name}) |
| | 438 | else |
| | 439 | try std.zig.binNameAlloc(arena, root_name, target_info.target, output_mode, link_mode), |
| 437 | | 440 | |
| 438 | .yes => |p| p, | 441 | .yes => |p| p, |
| 439 | }; | 442 | }; |