mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-03 22:19:32 +03:00
disable dynamic override test on ubsan/tsan/asan
This commit is contained in:
parent
7dd598e0e8
commit
62833be9eb
1 changed files with 2 additions and 1 deletions
|
@ -704,11 +704,12 @@ if (MI_BUILD_TESTS)
|
|||
endif()
|
||||
|
||||
# dynamic override test
|
||||
if(MI_BUILD_SHARED AND NOT WIN32)
|
||||
if(MI_BUILD_SHARED AND NOT (WIN32 OR MI_TRACK_ASAN OR MI_DEBUG_TSAN OR MI_DEBUG_UBSAN))
|
||||
add_executable(mimalloc-test-stress-dynamic test/test-stress.c)
|
||||
target_compile_definitions(mimalloc-test-stress-dynamic PRIVATE ${mi_defines} "USE_STD_MALLOC=1")
|
||||
target_compile_options(mimalloc-test-stress-dynamic PRIVATE ${mi_cflags})
|
||||
target_include_directories(mimalloc-test-stress-dynamic PRIVATE include)
|
||||
target_link_libraries(mimalloc-test-stress-dynamic PRIVATE ${mi_libraries}) # pthread
|
||||
if(APPLE)
|
||||
set(LD_PRELOAD "DYLD_INSERT_LIBRARIES")
|
||||
else()
|
||||
|
|
Loading…
Add table
Reference in a new issue