mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Added the -D_GLIBCXX_ASSERTIONS and -D_FORTIFY_SOURCE=3 options when building using AddressSanitizer or UndefinedBehaviorSanitizer
This commit is contained in:
parent
2aa52d69e5
commit
4ddf13a833
|
@ -269,6 +269,11 @@ if(UBSAN)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(ASAN OR UBSAN)
|
||||
# Add some extra checks when building with AddressSanitizer or UndefinedBehaviorSanitizer.
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=3")
|
||||
endif()
|
||||
|
||||
# The following removes half of the ranlib warnings on macOS regarding no symbols for files
|
||||
# that are #ifdef'ed away. There must be a way to remove the other half as well?
|
||||
if(APPLE)
|
||||
|
|
Loading…
Reference in a new issue