Skip to content

Commit 9afc9d7

Browse files
authored
configure: Set cmake arch value to i686 for Windows (#1020)
The upstream Swift repository sets the value to `i686`. While this is incorrect and CMake expects `X86`, this is used in a few projects so we update the value here to match upstream behavior.
1 parent 800fa95 commit 9afc9d7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/actions/configure-cmake-project/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,14 @@ runs:
128128
}
129129
130130
$CMakeArch = switch ($OS) {
131-
'Windows' { $Arch.ToUpperInvariant() }
131+
'Windows' {
132+
switch ($Arch) {
133+
'arm64' { 'ARM64' }
134+
'amd64' { 'AMD64' }
135+
'x86' { 'i686' }
136+
default { throw "Unsupported Windows architecture: $Arch" }
137+
}
138+
}
132139
'Android' {
133140
switch ($Arch) {
134141
'arm64' { 'aarch64' }

0 commit comments

Comments
 (0)