diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-04 20:30:32 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 17:51:18 -0700 |
| commit | 8c44954bc6a91ae66f5aea92ea8380c28b50b3f0 (patch) | |
| tree | 561158f17f27378a0bbd7d572a347082cacc464c /lib/std/Build/Module.zig | |
| parent | dbdb87502d6936597424fe86842c15978ba86918 (diff) | |
| download | zig-8c44954bc6a91ae66f5aea92ea8380c28b50b3f0.tar.gz zig-8c44954bc6a91ae66f5aea92ea8380c28b50b3f0.zip | |
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.
Diffstat (limited to 'lib/std/Build/Module.zig')
| -rw-r--r-- | lib/std/Build/Module.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/Build/Module.zig b/lib/std/Build/Module.zig index 5482ca25ec..9c98dd0a46 100644 --- a/lib/std/Build/Module.zig +++ b/lib/std/Build/Module.zig @@ -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| { |
