std.Target.Query: remove deprecated API
These functions have been doomed for a long time. Finally I figured out what the proper relationship between this API and std.Target is.
This commit is contained in:
@@ -627,12 +627,12 @@ pub fn appendZigProcessFlags(
|
||||
try zig_args.append(@tagName(m.code_model));
|
||||
}
|
||||
|
||||
if (m.target) |target| {
|
||||
if (m.target) |*target| {
|
||||
// Communicate the query via CLI since it's more compact.
|
||||
if (!target.query.isNative()) {
|
||||
try zig_args.appendSlice(&.{
|
||||
"-target", try target.query.zigTriple(b.allocator),
|
||||
"-mcpu", try std.Build.serializeCpu(b.allocator, target.query.getCpu()),
|
||||
"-mcpu", try target.query.serializeCpuAlloc(b.allocator),
|
||||
});
|
||||
|
||||
if (target.query.dynamic_linker.get()) |dynamic_linker| {
|
||||
|
||||
Reference in New Issue
Block a user