fix zig build adding invalid cli args

This commit is contained in:
Andrew Kelley 2020-02-21 01:58:40 -05:00
parent 7b8b4d200c
commit a391a82e49
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -1921,7 +1921,7 @@ pub const LibExeObjStep = struct {
}
} else {
var mcpu_buffer = try std.Buffer.init(builder.allocator, "-mcpu=");
try zig_args.append(cross.cpu.model.name);
try mcpu_buffer.append(cross.cpu.model.name);
for (all_features) |feature, i_usize| {
const i = @intCast(Target.Cpu.Feature.Set.Index, i_usize);