Skip to content

Commit 81f756f

Browse files
One more chkstk workaround (#74)
1 parent 6d2c6fb commit 81f756f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/coreclr/nativeaot/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ if(MSVC)
2323
string(REPLACE "/RTC1" " " CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
2424
endif()
2525
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/GS->)
26+
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/Gs10000000>) # avoid __chkstk
2627

2728
# Sets the options that create the fastest code in the majority of cases
2829
add_compile_options($<$<AND:$<COMPILE_LANGUAGE:C,CXX>,$<CONFIG:Release>>:/O2>)

0 commit comments

Comments
 (0)