File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -248,3 +248,12 @@ target_include_directories(symx SYSTEM PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/extern
248248## picoSHA2 — header-only, type appears in the public API (Scalar.h::_get_checksum).
249249target_include_directories (symx SYSTEM PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} /extern/picoSHA2/include )
250250
251+ # Conditionally increase the stack size (hugely complex expressions might need it)
252+ set (SYMX_STACK_SIZE "10480000" CACHE STRING "Linker stack size in bytes" )
253+
254+ target_link_options (symx INTERFACE
255+ "$<$<CXX_COMPILER_ID :MSVC >:/STACK :${SYMX_STACK_SIZE} >"
256+ "$<$<CXX_COMPILER_ID :GNU >:-Wl ,-z ,stack -size =${SYMX_STACK_SIZE} >"
257+ "$<$<CXX_COMPILER_ID :Clang >:-Wl ,-z ,--stack_size =${SYMX_STACK_SIZE} >"
258+ "$<$<CXX_COMPILER_ID :AppleClang >:-Wl ,-stack_size ,${SYMX_STACK_SIZE} >"
259+ )
You can’t perform that action at this time.
0 commit comments