[Openmp-commits] [openmp] dea2def - [OpenMP] Add CMake option to disable `libarcher` support
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Fri Mar 31 12:56:41 PDT 2023
Author: Joseph Huber
Date: 2023-03-31T14:55:39-05:00
New Revision: dea2defbf4aa289bf13b2df3396d5d42ab23e5f6
URL: https://github.com/llvm/llvm-project/commit/dea2defbf4aa289bf13b2df3396d5d42ab23e5f6
DIFF: https://github.com/llvm/llvm-project/commit/dea2defbf4aa289bf13b2df3396d5d42ab23e5f6.diff
LOG: [OpenMP] Add CMake option to disable `libarcher` support
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`.
Reviewed By: jplehr
Differential Revision: https://reviews.llvm.org/D147343
Added:
Modified:
openmp/tools/archer/CMakeLists.txt
Removed:
################################################################################
diff --git a/openmp/tools/archer/CMakeLists.txt b/openmp/tools/archer/CMakeLists.txt
index 46f38e2e49947..980eb2b0b675f 100644
--- a/openmp/tools/archer/CMakeLists.txt
+++ b/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)
More information about the Openmp-commits
mailing list