Commit 654a6d7
committed
Fix Windows CI C1060 by reducing build parallelism
Windows CI was hitting C1060 "compiler is out of heap space" even after
splitting test files to 1,200 lines. Root cause: GitHub's windows-latest
runners have only 16GB RAM, and parallel cl.exe processes exhaust memory
with template-heavy code.
Solution (based on Microsoft docs + community solutions):
1. Add `-A x64` to ensure 64-bit toolset (32-bit has ~2-3GB limit)
2. Use `/m:4` to limit MSBuild to 4 worker processes
3. Use `/p:CL_MPCount=1` to disable cl.exe's internal /MP flag
This reduces peak compiler memory usage while still maintaining reasonable
build performance (~4x parallelism at MSBuild level).
Refs:
- https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1060
- appveyor/ci#7421 parent a7a421c commit 654a6d7
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
0 commit comments