| ... | @@ -580,10 +580,10 @@ pub const Installation = struct { | ... | @@ -580,10 +580,10 @@ pub const Installation = struct { |
| 580 | defer options_key.closeKey(); | 580 | defer options_key.closeKey(); |
| 581 | | 581 | |
| 582 | const option_name = comptime switch (builtin.target.cpu.arch) { | 582 | const option_name = comptime switch (builtin.target.cpu.arch) { |
| 583 | .arm, .armeb => "OptionId.DesktopCPParm", | 583 | .thumb => "OptionId.DesktopCPParm", |
| 584 | .aarch64 => "OptionId.DesktopCPParm64", | 584 | .aarch64 => "OptionId.DesktopCPParm64", |
| 585 | .x86_64 => "OptionId.DesktopCPPx64", | | |
| 586 | .x86 => "OptionId.DesktopCPPx86", | 585 | .x86 => "OptionId.DesktopCPPx86", |
| | 586 | .x86_64 => "OptionId.DesktopCPPx64", |
| 587 | else => |tag| @compileError("Windows SDK cannot be detected on architecture " ++ tag), | 587 | else => |tag| @compileError("Windows SDK cannot be detected on architecture " ++ tag), |
| 588 | }; | 588 | }; |
| 589 | | 589 | |
| ... | @@ -824,10 +824,10 @@ const MsvcLibDir = struct { | ... | @@ -824,10 +824,10 @@ const MsvcLibDir = struct { |
| 824 | try lib_dir_buf.appendSlice("VC\\Tools\\MSVC\\"); | 824 | try lib_dir_buf.appendSlice("VC\\Tools\\MSVC\\"); |
| 825 | try lib_dir_buf.appendSlice(default_tools_version); | 825 | try lib_dir_buf.appendSlice(default_tools_version); |
| 826 | const folder_with_arch = "\\Lib\\" ++ comptime switch (builtin.target.cpu.arch) { | 826 | const folder_with_arch = "\\Lib\\" ++ comptime switch (builtin.target.cpu.arch) { |
| | 827 | .thumb => "arm", |
| | 828 | .aarch64 => "arm64", |
| 827 | .x86 => "x86", | 829 | .x86 => "x86", |
| 828 | .x86_64 => "x64", | 830 | .x86_64 => "x64", |
| 829 | .arm, .armeb => "arm", | | |
| 830 | .aarch64 => "arm64", | | |
| 831 | else => |tag| @compileError("MSVC lib dir cannot be detected on architecture " ++ tag), | 831 | else => |tag| @compileError("MSVC lib dir cannot be detected on architecture " ++ tag), |
| 832 | }; | 832 | }; |
| 833 | try lib_dir_buf.appendSlice(folder_with_arch); | 833 | try lib_dir_buf.appendSlice(folder_with_arch); |
| ... | @@ -909,10 +909,10 @@ const MsvcLibDir = struct { | ... | @@ -909,10 +909,10 @@ const MsvcLibDir = struct { |
| 909 | } | 909 | } |
| 910 | | 910 | |
| 911 | const folder_with_arch = "\\Lib\\" ++ comptime switch (builtin.target.cpu.arch) { | 911 | const folder_with_arch = "\\Lib\\" ++ comptime switch (builtin.target.cpu.arch) { |
| | 912 | .thumb => "arm", |
| | 913 | .aarch64 => "arm64", |
| 912 | .x86 => "x86", | 914 | .x86 => "x86", |
| 913 | .x86_64 => "x64", | 915 | .x86_64 => "x64", |
| 914 | .arm, .armeb => "arm", | | |
| 915 | .aarch64 => "arm64", | | |
| 916 | else => |tag| @compileError("MSVC lib dir cannot be detected on architecture " ++ tag), | 916 | else => |tag| @compileError("MSVC lib dir cannot be detected on architecture " ++ tag), |
| 917 | }; | 917 | }; |
| 918 | | 918 | |
| ... | @@ -977,10 +977,10 @@ const MsvcLibDir = struct { | ... | @@ -977,10 +977,10 @@ const MsvcLibDir = struct { |
| 977 | errdefer base_path.deinit(); | 977 | errdefer base_path.deinit(); |
| 978 | | 978 | |
| 979 | const folder_with_arch = "\\VC\\lib\\" ++ comptime switch (builtin.target.cpu.arch) { | 979 | const folder_with_arch = "\\VC\\lib\\" ++ comptime switch (builtin.target.cpu.arch) { |
| | 980 | .thumb => "arm", |
| | 981 | .aarch64 => "arm64", |
| 980 | .x86 => "", //x86 is in the root of the Lib folder | 982 | .x86 => "", //x86 is in the root of the Lib folder |
| 981 | .x86_64 => "amd64", | 983 | .x86_64 => "amd64", |
| 982 | .arm, .armeb => "arm", | | |
| 983 | .aarch64 => "arm64", | | |
| 984 | else => |tag| @compileError("MSVC lib dir cannot be detected on architecture " ++ tag), | 984 | else => |tag| @compileError("MSVC lib dir cannot be detected on architecture " ++ tag), |
| 985 | }; | 985 | }; |
| 986 | try base_path.appendSlice(folder_with_arch); | 986 | try base_path.appendSlice(folder_with_arch); |