mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 09:33:18 +00:00
stage2: update @import("builtin") API usage
This commit is contained in:
parent
98a28ece0b
commit
5cacc446c4
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user