Skip to content

Commit 65d3796

Browse files
committed
Split helpers into 5 parts (~300-500 lines each) for MSVC
Even the single helpers.cpp was causing heap exhaustion. Split into 5 parts to keep each file small enough for MSVC.
1 parent e4db5c6 commit 65d3796

7 files changed

Lines changed: 1865 additions & 1827 deletions

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,13 @@ if(FASTMCPP_BUILD_TESTS)
234234
add_test(NAME fastmcpp_server_patterns COMMAND fastmcpp_server_patterns)
235235

236236
# Server interactions helpers library (compiled separately to avoid MSVC heap exhaustion)
237-
add_library(fastmcpp_interactions_helpers STATIC tests/server/interactions_helpers.cpp)
237+
add_library(fastmcpp_interactions_helpers STATIC
238+
tests/server/interactions_helpers_p1.cpp
239+
tests/server/interactions_helpers_p2.cpp
240+
tests/server/interactions_helpers_p3.cpp
241+
tests/server/interactions_helpers_p4.cpp
242+
tests/server/interactions_helpers_p5.cpp
243+
)
238244
target_link_libraries(fastmcpp_interactions_helpers PRIVATE fastmcpp_core)
239245

240246
# Server interactions split into 6 parts

0 commit comments

Comments
 (0)