[compiler-rt] 24d5c54 - Revert "[compiler-rt][memprof] Do not add libdl to MEMPROF_UNITTEST_LINK_LIBRARIES (#98221)"
Alexander Shaposhnikov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 00:15:46 PDT 2024
Author: Alexander Shaposhnikov
Date: 2024-07-10T07:14:49Z
New Revision: 24d5c54cf52d38e63d365275f913285908aa9c9a
URL: https://github.com/llvm/llvm-project/commit/24d5c54cf52d38e63d365275f913285908aa9c9a
DIFF: https://github.com/llvm/llvm-project/commit/24d5c54cf52d38e63d365275f913285908aa9c9a.diff
LOG: Revert "[compiler-rt][memprof] Do not add libdl to MEMPROF_UNITTEST_LINK_LIBRARIES (#98221)"
This reverts commit 04f0adcd58baa530b13472a897b422fae46abfa2.
Added:
Modified:
compiler-rt/lib/memprof/tests/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/memprof/tests/CMakeLists.txt b/compiler-rt/lib/memprof/tests/CMakeLists.txt
index a35f12bc14265..0b5c302a4ce5d 100644
--- a/compiler-rt/lib/memprof/tests/CMakeLists.txt
+++ b/compiler-rt/lib/memprof/tests/CMakeLists.txt
@@ -49,6 +49,7 @@ endif()
set(MEMPROF_UNITTEST_LINK_LIBRARIES
${COMPILER_RT_UNWINDER_LINK_LIBS}
${SANITIZER_TEST_CXX_LIBRARIES})
+append_list_if(COMPILER_RT_HAS_LIBDL -ldl MEMPROF_UNITTEST_LINK_LIBRARIES)
# Adds memprof tests for each architecture.
macro(add_memprof_tests_for_arch arch)
More information about the llvm-commits
mailing list