File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -713,10 +713,12 @@ if (MI_BUILD_TESTS)
713713 target_compile_definitions (mimalloc-test -${TEST_NAME} PRIVATE ${mi_defines} )
714714 target_compile_options (mimalloc-test -${TEST_NAME} PRIVATE ${mi_cflags} )
715715 target_include_directories (mimalloc-test -${TEST_NAME} PRIVATE include )
716- if (MI_BUILD_STATIC)
716+ if (MI_BUILD_STATIC AND NOT MI_DEBUG_TSAN )
717717 target_link_libraries (mimalloc-test -${TEST_NAME} PRIVATE mimalloc-static ${mi_libraries} )
718- else ( )
718+ elseif (MI_BUILD_SHARED )
719719 target_link_libraries (mimalloc-test -${TEST_NAME} PRIVATE mimalloc ${mi_libraries} )
720+ else ()
721+ message (STATUS "cannot build TSAN tests without MI_BUILD_SHARED being enabled" )
720722 endif ()
721723 add_test (NAME test -${TEST_NAME} COMMAND mimalloc-test -${TEST_NAME} )
722724 endforeach ()
You can’t perform that action at this time.
0 commit comments