From 6c077397dc13a58d511fcdca1f47166c6cc46a51 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Wed, 21 Oct 2020 01:36:00 +0100 Subject: [PATCH] Adjust Windows stack and heap reservations for FST4(W) code --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71589a073..2158cf0dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1170,6 +1170,11 @@ target_link_libraries (ft4sim_mult wsjt_fort wsjt_cxx) add_executable (fst4sim lib/fst4/fst4sim.f90) target_link_libraries (fst4sim wsjt_fort wsjt_cxx) +if (WIN32) + set_target_properties (fst4sim PROPERTIES + LINK_FLAGS -Wl,--stack,0x4000000,--heap,0x6000000 + ) +endif () add_executable (ldpcsim240_101 lib/fst4/ldpcsim240_101.f90) target_link_libraries (ldpcsim240_101 wsjt_fort wsjt_cxx) @@ -1432,7 +1437,7 @@ else () ) if (WIN32) set_target_properties (wsjtx PROPERTIES - LINK_FLAGS -Wl,--stack,16777216 + LINK_FLAGS -Wl,--stack,0x400000,--heap,0x20000000 ) endif () endif ()