Skip to content

Commit fed8df9

Browse files
tangtang95alexrp
authored andcommitted
fix: windows libc lib paths for x86-windows-msvc
1 parent 0585ed0 commit fed8df9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/zig/LibCInstallation.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ fn findNativeCrtDirWindows(
407407
var result_buf = std.ArrayList(u8).init(allocator);
408408
defer result_buf.deinit();
409409

410-
const arch_sub_dir = switch (builtin.target.cpu.arch) {
410+
const arch_sub_dir = switch (args.target.cpu.arch) {
411411
.x86 => "x86",
412412
.x86_64 => "x64",
413413
.arm, .armeb => "arm",
@@ -474,7 +474,7 @@ fn findNativeKernel32LibDir(
474474
var result_buf = std.ArrayList(u8).init(allocator);
475475
defer result_buf.deinit();
476476

477-
const arch_sub_dir = switch (builtin.target.cpu.arch) {
477+
const arch_sub_dir = switch (args.target.cpu.arch) {
478478
.x86 => "x86",
479479
.x86_64 => "x64",
480480
.arm, .armeb => "arm",

0 commit comments

Comments
 (0)