fix(plugin): use POSIX pthreads in C11 test fixture for TSan compatibility
This commit is contained in:
1 parent
40b579d683
commit
1a54f3857e
2 files changed
+24
-17
No files matched your search
@@ -265,6 +265,10 @@ if(TARGET VoidTests AND TARGET Void::Plugin)
|
||||
if(VOID_WARNINGS_AS_ERRORS)
|
||||
target_compile_options(${target_name} PRIVATE -Wall -Wextra -Wpedantic -Werror)
|
||||
endif()
|
||||
find_package(Threads QUIET)
|
||||
if(TARGET Threads::Threads)
|
||||
target_link_libraries(${target_name} PRIVATE Threads::Threads)
|
||||
endif()
|
||||
if(VOID_ENABLE_ASAN)
|
||||
target_compile_options(${target_name} PRIVATE -fsanitize=address -fno-omit-frame-pointer)
|
||||
target_link_options(${target_name} PRIVATE -fsanitize=address)
|
||||
|
||||
Reference in new issue
Block a user