- disable runtime buffer security check in release build.

This has a minor but measurable effect on performance because it gets inserted into every function which uses a local stack space structure.
This commit is contained in:
Christoph Oelckers 2018-08-14 21:29:14 +02:00
parent 96ec6b1dc6
commit 7d40edd6ac

View file

@ -203,9 +203,9 @@ if( MSVC )
# Avoid CRT DLL dependancies in release builds, optionally generate assembly output for checking crash locations. # Avoid CRT DLL dependancies in release builds, optionally generate assembly output for checking crash locations.
option( ZDOOM_GENERATE_ASM "Generate assembly output." OFF ) option( ZDOOM_GENERATE_ASM "Generate assembly output." OFF )
if( ZDOOM_GENERATE_ASM ) if( ZDOOM_GENERATE_ASM )
set( REL_C_FLAGS "/MT /Oy /Oi /FAcs" ) set( REL_C_FLAGS "/MT /Oy /Oi /FAcs /GS-" )
else() else()
set( REL_C_FLAGS "/MT /Oy /Oi" ) set( REL_C_FLAGS "/MT /Oy /Oi /GS-" )
endif() endif()