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:
Andrew Kelley
2023-12-04 20:30:32 -07:00
parent dbdb87502d
commit 8c44954bc6
10 changed files with 275 additions and 373 deletions

View File

@@ -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| {