Stage2: facepalm.

This commit is contained in:
Noam Preil 2020-07-08 00:11:41 -04:00
parent 9aaffe00d3
commit e2aad33d4e
No known key found for this signature in database
GPG Key ID: FC347E7C85BE8238

View File

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