array literal address of fix

This commit is contained in:
Haze Booth 2019-12-30 01:49:53 -05:00 committed by Andrew Kelley
parent e0c7d12043
commit c70a673c6e

View File

@ -357,9 +357,9 @@ pub const Target = union(enum) {
};
if (linkage == .Static) {
return try mem.join(allocator, "-", [_][]const u8{ arch, os, "static" });
return try mem.join(allocator, "-", &[_][]const u8{ arch, os, "static" });
} else {
return try mem.join(allocator, "-", [_][]const u8{ arch, os });
return try mem.join(allocator, "-", &[_][]const u8{ arch, os });
}
}