File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ option(CROW_RETURNS_OK_ON_HTTP_OPTIONS_REQUEST
5757
5858option (CROW_ENABLE_SSL "Enable Crow's SSL feature for supporting https" OFF )
5959option (CROW_ENABLE_COMPRESSION "Enable Crow's Compression feature for supporting compressed http content" OFF )
60- option (ENABLE_TSAN "Enable ThreadSanitizer" OFF )
60+ option (CROW_ENABLE_TSAN "Enable ThreadSanitizer" OFF )
6161
6262if (CROW_GENERATE_SBOM OR CROW_BUILD_TESTS)
6363 include (${CMAKE_CURRENT_SOURCE_DIR} /cmake/CPM.cmake )
@@ -83,14 +83,9 @@ if(CROW_GENERATE_SBOM)
8383 )
8484endif ()
8585
86- if (ENABLE_TSAN )
86+ if (CROW_ENABLE_TSAN )
8787 message (STATUS "ThreadSanitizer enabled" )
88- add_compile_options (
89- -fsanitize=thread
90- -fno-omit-frame-pointer
91- -O1
92- -g
93- )
88+ add_compile_options (-fsanitize=thread -fno-omit-frame-pointer )
9489 add_link_options (-fsanitize=thread )
9590endif ()
9691
You can’t perform that action at this time.
0 commit comments