Skip to content

Commit

Permalink
One more chkstk workaround (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalStrehovsky authored Jun 17, 2024
1 parent 6d2c6fb commit 81f756f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/coreclr/nativeaot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if(MSVC)
string(REPLACE "/RTC1" " " CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
endif()
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/GS->)
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/Gs10000000>) # avoid __chkstk

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

0 comments on commit 81f756f

Please sign in to comment.