File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ if(MSVC)
63
63
endif ()
64
64
option (SOFA_ENABLE_FAST_MATH "Enable floating-point model to fast (theoretically faster but can bring unexpected results/bugs)." OFF )
65
65
66
-
67
66
### SOFA_DEV_TOOL
68
67
option (SOFA_WITH_DEVTOOLS "Compile with development extra features." ON )
69
68
@@ -179,6 +178,12 @@ if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU" OR ${CMAKE_CXX_COMPILER_ID} MATCHES "C
179
178
if (SOFA_ENABLE_FAST_MATH )
180
179
list (APPEND SOFACONFIG_COMPILE_OPTIONS "-ffast-math" )
181
180
endif ()
181
+
182
+ option (SOFA_ENABLE_THREAD_SANITIZER "Enable thread sanitizer (only gcc or clang)" OFF )
183
+ if (SOFA_ENABLE_THREAD_SANITIZER )
184
+ list (APPEND SOFACONFIG_COMPILE_OPTIONS "-fsanitize=thread" )
185
+ list (APPEND SOFACONFIG_LINK_OPTIONS "-fsanitize=thread" )
186
+ endif ()
182
187
endif ()
183
188
184
189
## Windows-specific
You can’t perform that action at this time.
0 commit comments