Linux Clang unoptimized build fix. (#7587)

The _FORTIFY_SOURCE option must be used with the -O optimization flag.

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
monroegm-disable-blank-issue-2
lumberyard-employee-dm 4 years ago committed by GitHub
parent 2a3c2b67cc
commit d1fcbf8855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,7 +9,9 @@
include(cmake/Platform/Common/Configurations_common.cmake)
ly_append_configurations_options(
DEFINES
DEFINES_PROFILE
_FORTIFY_SOURCE=2
DEFINES_RELEASE
_FORTIFY_SOURCE=2
COMPILATION
-fno-exceptions

@ -20,7 +20,9 @@ endif()
ly_append_configurations_options(
DEFINES
DEFINES_PROFILE
_FORTIFY_SOURCE=2
DEFINES_RELEASE
_FORTIFY_SOURCE=2
COMPILATION_C

Loading…
Cancel
Save