From 7d40edd6ac6cec0ca4e41f84acb97f72e4ecd7b8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 14 Aug 2018 21:29:14 +0200 Subject: [PATCH] - 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. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1328491d3..032dbb12c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -203,9 +203,9 @@ if( MSVC ) # Avoid CRT DLL dependancies in release builds, optionally generate assembly output for checking crash locations. option( ZDOOM_GENERATE_ASM "Generate assembly output." OFF ) if( ZDOOM_GENERATE_ASM ) - set( REL_C_FLAGS "/MT /Oy /Oi /FAcs" ) + set( REL_C_FLAGS "/MT /Oy /Oi /FAcs /GS-" ) else() - set( REL_C_FLAGS "/MT /Oy /Oi" ) + set( REL_C_FLAGS "/MT /Oy /Oi /GS-" ) endif()