Skip to content

Commit 6a72739

Browse files
committed
fix pthread link error for dynamic stress test (issue #1158, PR #1159 by @emeryberger)
1 parent f5c860d commit 6a72739

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ if (MI_BUILD_TESTS)
734734
target_link_libraries(mimalloc-test-stress-dynamic PRIVATE mimalloc ${mi_libraries}) # link mi_version
735735
add_test(NAME test-stress-dynamic COMMAND ${CMAKE_COMMAND} -E env MIMALLOC_VERBOSE=1 $<TARGET_FILE:mimalloc-test-stress-dynamic>)
736736
else()
737+
target_link_libraries(mimalloc-test-stress-dynamic PRIVATE ${mi_libraries}) # pthreads, issue 1158
737738
if(APPLE)
738739
set(LD_PRELOAD "DYLD_INSERT_LIBRARIES")
739740
else()

0 commit comments

Comments
 (0)