Skip to content

Commit cf3a2c1

Browse files
committed
Use x64 MSVC host tools to avoid compiler heap exhaustion
The 64-bit host compiler has more addressable memory than the 32-bit host, which helps avoid C1060 (out of heap space) errors when compiling template-heavy code like JSON object construction.
1 parent 73c076f commit cf3a2c1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@ jobs:
4949
5050
- name: Configure (Windows)
5151
if: runner.os == 'Windows'
52+
# Use x64 host tools for more compiler heap space (avoids C1060 errors on template-heavy code)
5253
run: >
5354
cmake -B build -S .
5455
-G "Visual Studio 17 2022"
56+
-A x64
57+
-T host=x64
5558
-DFASTMCPP_BUILD_TESTS=ON
5659
-DFASTMCPP_BUILD_EXAMPLES=ON
5760

0 commit comments

Comments
 (0)