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:
parent
f566e2b9ec
commit
6d56fe50e7
@ -26,10 +26,10 @@ option(SANITIZE_ADDRESS "Enable AddressSanitizer for sanitized targets." Off)
|
||||
|
||||
set(FLAG_CANDIDATES
|
||||
# Clang 3.2+ use this version
|
||||
"-g -O1 -fsanitize=address"
|
||||
"-g -fsanitize=address"
|
||||
|
||||
# Older deprecated flag for ASan
|
||||
"-g -O1 -faddress-sanitizer"
|
||||
"-g -faddress-sanitizer"
|
||||
)
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
option(SANITIZE_MEMORY "Enable MemorySanitizer for sanitized targets." Off)
|
||||
|
||||
set(FLAG_CANDIDATES
|
||||
"-g -O1 -fsanitize=memory"
|
||||
"-g -fsanitize=memory"
|
||||
)
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
option(SANITIZE_THREAD "Enable ThreadSanitizer for sanitized targets." Off)
|
||||
|
||||
set(FLAG_CANDIDATES
|
||||
"-g -O1 -fsanitize=thread"
|
||||
"-g -fsanitize=thread"
|
||||
)
|
||||
|
||||
|
||||
|
@ -26,7 +26,7 @@ option(SANITIZE_UNDEFINED
|
||||
"Enable UndefinedBehaviorSanitizer for sanitized targets." Off)
|
||||
|
||||
set(FLAG_CANDIDATES
|
||||
"-g -O1 -fsanitize=undefined"
|
||||
"-g -fsanitize=undefined"
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user