commit 5cacc446c4ff5591b7a9c506952f4eb9ae5efdd1 (tree)
parent 98a28ece0b461d44dadc80c872e7ede562ddd447
Author: Andrew Kelley <andrew@ziglang.org>
Date: Mon, 17 May 2021 17:39:26 -0700
stage2: update `@import("builtin")` API usage
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libc_installation.zig b/src/libc_installation.zig
@@ -383,7 +383,7 @@ pub const LibCInstallation = struct {
var result_buf = std.ArrayList(u8).init(allocator);
defer result_buf.deinit();
- const arch_sub_dir = switch (builtin.arch) {
+ const arch_sub_dir = switch (builtin.target.cpu.arch) {
.i386 => "x86",
.x86_64 => "x64",
.arm, .armeb => "arm",
@@ -437,7 +437,7 @@ pub const LibCInstallation = struct {
var result_buf = std.ArrayList(u8).init(allocator);
defer result_buf.deinit();
- const arch_sub_dir = switch (builtin.arch) {
+ const arch_sub_dir = switch (builtin.target.cpu.arch) {
.i386 => "x86",
.x86_64 => "x64",
.arm, .armeb => "arm",