Commit c7903bd
committed
setup.py: honor CMAKE_GENERATOR_PLATFORM for the Windows -A flag
The Windows build hardcoded the Visual Studio target architecture to x64 for
any 64-bit interpreter (`if sys.maxsize > 2**32: -A x64`). On win-arm64 the
interpreter is 64-bit but the architecture is ARM, so this mis-targeted the
build and find_package(Python) then failed. Honor an explicit
CMAKE_GENERATOR_PLATFORM (e.g. "ARM64") from the environment, falling back to
the previous behavior otherwise.1 parent aababd1 commit c7903bd
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
| |||
0 commit comments