Skip to content

Commit

Permalink
Removed optimization flags.
Browse files Browse the repository at this point in the history
Due optimizing the code is optional for using the sanitizers, the user should
set an optimisation level by his choice on his own.
  • Loading branch information
alehaa committed Apr 19, 2016
1 parent f566e2b commit 6d56fe5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmake/FindASan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)


Expand Down
2 changes: 1 addition & 1 deletion cmake/FindMSan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
option(SANITIZE_MEMORY "Enable MemorySanitizer for sanitized targets." Off)

set(FLAG_CANDIDATES
"-g -O1 -fsanitize=memory"
"-g -fsanitize=memory"
)


Expand Down
2 changes: 1 addition & 1 deletion cmake/FindTSan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
option(SANITIZE_THREAD "Enable ThreadSanitizer for sanitized targets." Off)

set(FLAG_CANDIDATES
"-g -O1 -fsanitize=thread"
"-g -fsanitize=thread"
)


Expand Down
2 changes: 1 addition & 1 deletion cmake/FindUBSan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ option(SANITIZE_UNDEFINED
"Enable UndefinedBehaviorSanitizer for sanitized targets." Off)

set(FLAG_CANDIDATES
"-g -O1 -fsanitize=undefined"
"-g -fsanitize=undefined"
)


Expand Down

0 comments on commit 6d56fe5

Please sign in to comment.