From 5cacc446c4ff5591b7a9c506952f4eb9ae5efdd1 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 17 May 2021 17:39:26 -0700 Subject: [PATCH] stage2: update `@import("builtin")` API usage --- src/libc_installation.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libc_installation.zig b/src/libc_installation.zig index bb83416d30..c681884054 100644 --- 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",