Commit 552efd2
committed
fix(windows): resolve CRT DLLs via Sysnative to survive WOW64 redirection
Flutter may drive the CMake install step with the 32-bit cmake.exe bundled
in VS Build Tools. Under WOW64 file-system redirection that process sees
C:\Windows\System32 rewritten to SysWOW64, which holds x86 CRT DLLs and has
no vcruntime140_1.dll, so the x64 build copies wrong-arch DLLs and then fails
with "file INSTALL cannot find vcruntime140_1.dll".
Prefer the Sysnative pseudo-folder (visible only to 32-bit processes, maps to
the real 64-bit System32) when present, falling back to System32 for native
64-bit cmake.
Fixes flet-dev/flet#64361 parent 33d0293 commit 552efd2
1 file changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
193 | 211 | | |
194 | 212 | | |
195 | 213 | | |
196 | 214 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
200 | 218 | | |
201 | 219 | | |
202 | 220 | | |
| |||
0 commit comments