Remove _FORTIFY_SOURCES from build:

This option is silently ignorned at -O0
This commit is contained in:
seelabs
2016-08-10 13:22:51 -04:00
committed by Nik Bougalis
parent 2fa84e95b9
commit b0704b47e8
2 changed files with 0 additions and 9 deletions

View File

@@ -527,12 +527,6 @@ if (NOT WIN32)
if (is_gcc)
add_compile_options(-Wno-unused-but-set-variable -Wno-unused-local-typedefs)
# Generator expressions are not supported in add_definitions, use set_property instead
set_property(
DIRECTORY
APPEND
PROPERTY COMPILE_DEFINITIONS
$<$<OR:$<CONFIG:Debug>,$<CONFIG:DebugClassic>>:_FORTIFY_SOURCE=2>)
add_compile_options($<$<OR:$<CONFIG:Debug>,$<CONFIG:DebugClassic>>:-O0>)
endif (is_gcc)
else(NOT WIN32)

View File

@@ -651,9 +651,6 @@ def config_env(toolchain, variant, env):
# extra error checking into the code (e.g. std::vector will throw
# for out-of-bounds conditions)
if is_debug_variant(variant):
env.Append(CPPDEFINES={
'_FORTIFY_SOURCE': 2
})
env.Append(CCFLAGS=[
'-O0'
])