Skip to content

Commit 8255983

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

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)