Skip to content

Commit d5c9f3a

Browse files
jll63claude
andcommitted
Increase MSVC compiler heap size to /Zm3200 (4x default)
Double the heap allocation from /Zm1600 to /Zm3200 to provide even more headroom for complex template instantiations in both CMake and b2 builds. This ensures robust compilation on systems with limited resources. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b2bf38c commit d5c9f3a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if (BOOST_OPENMETHOD_WARNINGS_AS_ERRORS)
3737
set(BOOST_OPENMETHOD_TEST_FLAGS "-Wall -Werror")
3838
endif()
3939
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_CXX_COMPILER_FRONTEND_VARIANT MATCHES "MSVC")
40-
set(BOOST_OPENMETHOD_TEST_FLAGS "/W4 /WX /we4265 /wd4251 /Zm1600")
40+
set(BOOST_OPENMETHOD_TEST_FLAGS "/W4 /WX /we4265 /wd4251 /Zm3200")
4141
endif()
4242

4343
# Print test configuration if running in CI

test/Jamfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ project
2626
<toolset>clang:<warnings-as-errors>on
2727
<toolset>gcc:<warnings-as-errors>on
2828
<toolset>msvc:<warnings-as-errors>on
29-
<toolset>msvc:<cxxflags>/Zm1600
29+
<toolset>msvc:<cxxflags>/Zm3200
3030
;
3131

3232
alias unit_test_framework

0 commit comments

Comments
 (0)