Skip to content

Commit dea2def

Browse files
committed
[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
1 parent 78ae870 commit dea2def

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openmp/tools/archer/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
# //
77
# //===----------------------------------------------------------------------===//
88

9-
9+
set(LIBOMP_ARCHER_SUPPORT TRUE CACHE BOOL "Build libomp with archer support")
1010

11-
if(LIBOMP_OMPT_SUPPORT)
11+
if(LIBOMP_OMPT_SUPPORT AND LIBOMP_ARCHER_SUPPORT)
1212
include_directories(${LIBOMP_INCLUDE_DIR})
1313

1414
add_library(archer SHARED ompt-tsan.cpp)

0 commit comments

Comments
 (0)