Skip to content

Commit

Permalink
CMakeLists.txt: add Thread Sanitizer compile option
Browse files Browse the repository at this point in the history
  • Loading branch information
jj1bdx committed Oct 26, 2021
1 parent b12c630 commit e860085
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ set(OPTIMIZATION_FLAGS "-O3 -ftree-vectorize -march=native")
#set(OPTIMIZATION_FLAGS "-O3 -ftree-vectorize -march=native -g -fprofile-instr-generate -fcoverage-mapping")
#SET(CMAKE_EXE_LINKER_FLAGS "-fprofile-instr-generate")
##
# For Sanitizers
# with Thread Sanitizer
#set(OPTIMIZATION_FLAGS "-fsanitize=thread -O3 -ftree-vectorize -march=native")
##

# Common compiler flags and options.
##
Expand Down

0 comments on commit e860085

Please sign in to comment.