aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-08-21 15:51:32 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2024-08-28 03:08:10 +0200
commita3990a950d5ec207d3b3494e39db29fdb0b3a0ea (patch)
tree613abd7645796e444c1de67123ddf7c46c2c0f34 /lib/std
parent1c6642552e6679a11779c4a7d3172f5ce30125ce (diff)
downloadzig-a3990a950d5ec207d3b3494e39db29fdb0b3a0ea.tar.gz
zig-a3990a950d5ec207d3b3494e39db29fdb0b3a0ea.zip
std.zig.WindowsSdk: Fix various target checks to check for thumb.
Also remove mentions of arm and armeb; these are not relevant for Windows.
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/zig/WindowsSdk.zig16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/std/zig/WindowsSdk.zig b/lib/std/zig/WindowsSdk.zig
index caa389b010..1e1f0f1629 100644
--- a/lib/std/zig/WindowsSdk.zig
+++ b/lib/std/zig/WindowsSdk.zig
@@ -580,10 +580,10 @@ pub const Installation = struct {
defer options_key.closeKey();
const option_name = comptime switch (builtin.target.cpu.arch) {
- .arm, .armeb => "OptionId.DesktopCPParm",
+ .thumb => "OptionId.DesktopCPParm",
.aarch64 => "OptionId.DesktopCPParm64",
- .x86_64 => "OptionId.DesktopCPPx64",
.x86 => "OptionId.DesktopCPPx86",
+ .x86_64 => "OptionId.DesktopCPPx64",
else => |tag| @compileError("Windows SDK cannot be detected on architecture " ++ tag),
};
@@ -824,10 +824,10 @@ const MsvcLibDir = struct {
try lib_dir_buf.appendSlice("VC\\Tools\\MSVC\\");
try lib_dir_buf.appendSlice(default_tools_version);
const folder_with_arch = "\\Lib\\" ++ comptime switch (builtin.target.cpu.arch) {
+ .thumb => "arm",
+ .aarch64 => "arm64",
.x86 => "x86",
.x86_64 => "x64",
- .arm, .armeb => "arm",
- .aarch64 => "arm64",
else => |tag| @compileError("MSVC lib dir cannot be detected on architecture " ++ tag),
};
try lib_dir_buf.appendSlice(folder_with_arch);
@@ -909,10 +909,10 @@ const MsvcLibDir = struct {
}
const folder_with_arch = "\\Lib\\" ++ comptime switch (builtin.target.cpu.arch) {
+ .thumb => "arm",
+ .aarch64 => "arm64",
.x86 => "x86",
.x86_64 => "x64",
- .arm, .armeb => "arm",
- .aarch64 => "arm64",
else => |tag| @compileError("MSVC lib dir cannot be detected on architecture " ++ tag),
};
@@ -977,10 +977,10 @@ const MsvcLibDir = struct {
errdefer base_path.deinit();
const folder_with_arch = "\\VC\\lib\\" ++ comptime switch (builtin.target.cpu.arch) {
+ .thumb => "arm",
+ .aarch64 => "arm64",
.x86 => "", //x86 is in the root of the Lib folder
.x86_64 => "amd64",
- .arm, .armeb => "arm",
- .aarch64 => "arm64",
else => |tag| @compileError("MSVC lib dir cannot be detected on architecture " ++ tag),
};
try base_path.appendSlice(folder_with_arch);