Skip to content

Commit 3f57458

Browse files
committed
Protect websockets_ by mutex
1 parent 5e5882d commit 3f57458

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ option(CROW_RETURNS_OK_ON_HTTP_OPTIONS_REQUEST
5757

5858
option(CROW_ENABLE_SSL "Enable Crow's SSL feature for supporting https" OFF)
5959
option(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

6262
if(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
)
8484
endif()
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)
9590
endif()
9691

0 commit comments

Comments
 (0)