[Openmp-commits] [PATCH] D147343: [OpenMP] Add CMake option to disable `libarcher` support
Joseph Huber via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Mar 31 10:28:16 PDT 2023
jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, tianshilei1992, ronlieb, jplehr.
Herald added subscribers: sunshaoce, guansong, yaxunl.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.
The support for `libarcher` can sometimes cause problems when running
tests or building. We want an option to turn this off when we are not
directly testing `libarcher`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147343
Files:
openmp/tools/archer/CMakeLists.txt
Index: openmp/tools/archer/CMakeLists.txt
===================================================================
--- openmp/tools/archer/CMakeLists.txt
+++ openmp/tools/archer/CMakeLists.txt
@@ -6,9 +6,9 @@
# //
# //===----------------------------------------------------------------------===//
-
+set(LIBOMP_ARCHER_SUPPORT TRUE CACHE BOOL "Build libomp with archer support")
-if(LIBOMP_OMPT_SUPPORT)
+if(LIBOMP_OMPT_SUPPORT AND LIBOMP_ARCHER_SUPPORT)
include_directories(${LIBOMP_INCLUDE_DIR})
add_library(archer SHARED ompt-tsan.cpp)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147343.510081.patch
Type: text/x-patch
Size: 551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230331/ba8ebf90/attachment.bin>
More information about the Openmp-commits
mailing list