Skip to content

Commit 24d5c54

Browse files
Revert "[compiler-rt][memprof] Do not add libdl to MEMPROF_UNITTEST_LINK_LIBRARIES (#98221)"
This reverts commit 04f0adc.
1 parent f11c0a1 commit 24d5c54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler-rt/lib/memprof/tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ endif()
4949
set(MEMPROF_UNITTEST_LINK_LIBRARIES
5050
${COMPILER_RT_UNWINDER_LINK_LIBS}
5151
${SANITIZER_TEST_CXX_LIBRARIES})
52+
append_list_if(COMPILER_RT_HAS_LIBDL -ldl MEMPROF_UNITTEST_LINK_LIBRARIES)
5253

5354
# Adds memprof tests for each architecture.
5455
macro(add_memprof_tests_for_arch arch)

0 commit comments

Comments
 (0)