[Openmp-commits] [PATCH] D142378: [OpenMP][Archer] Use dlsym rather than weak symbols for TSan annotations
Slava Zakharin via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jan 24 10:20:20 PST 2023
vzakhari added a comment.
I reverted this to fix the buildbots. Please consider the following change to avoid the issue:
diff --git a/openmp/tools/archer/CMakeLists.txt b/openmp/tools/archer/CMakeLists.txt
index 85405af..46f38e2 100644
--- a/openmp/tools/archer/CMakeLists.txt
+++ b/openmp/tools/archer/CMakeLists.txt
@@ -12,6 +12,7 @@ if(LIBOMP_OMPT_SUPPORT)
include_directories(${LIBOMP_INCLUDE_DIR})
add_library(archer SHARED ompt-tsan.cpp)
+ target_link_libraries(archer ${CMAKE_DL_LIBS})
add_library(archer_static STATIC ompt-tsan.cpp)
install(TARGETS archer archer_static
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142378/new/
https://reviews.llvm.org/D142378
More information about the Openmp-commits
mailing list