Removed optimization flags.

Due optimizing the code is optional for using the sanitizers, the user should
set an optimisation level by his choice on his own.
This commit is contained in:
Alexander Haase 2016-04-19 18:37:43 +02:00
parent f566e2b9ec
commit 6d56fe50e7
4 changed files with 5 additions and 5 deletions

View File

@ -26,10 +26,10 @@ option(SANITIZE_ADDRESS "Enable AddressSanitizer for sanitized targets." Off)
set(FLAG_CANDIDATES set(FLAG_CANDIDATES
# Clang 3.2+ use this version # Clang 3.2+ use this version
"-g -O1 -fsanitize=address" "-g -fsanitize=address"
# Older deprecated flag for ASan # Older deprecated flag for ASan
"-g -O1 -faddress-sanitizer" "-g -faddress-sanitizer"
) )

View File

@ -25,7 +25,7 @@
option(SANITIZE_MEMORY "Enable MemorySanitizer for sanitized targets." Off) option(SANITIZE_MEMORY "Enable MemorySanitizer for sanitized targets." Off)
set(FLAG_CANDIDATES set(FLAG_CANDIDATES
"-g -O1 -fsanitize=memory" "-g -fsanitize=memory"
) )

View File

@ -25,7 +25,7 @@
option(SANITIZE_THREAD "Enable ThreadSanitizer for sanitized targets." Off) option(SANITIZE_THREAD "Enable ThreadSanitizer for sanitized targets." Off)
set(FLAG_CANDIDATES set(FLAG_CANDIDATES
"-g -O1 -fsanitize=thread" "-g -fsanitize=thread"
) )

View File

@ -26,7 +26,7 @@ option(SANITIZE_UNDEFINED
"Enable UndefinedBehaviorSanitizer for sanitized targets." Off) "Enable UndefinedBehaviorSanitizer for sanitized targets." Off)
set(FLAG_CANDIDATES set(FLAG_CANDIDATES
"-g -O1 -fsanitize=undefined" "-g -fsanitize=undefined"
) )