Skip to content

Commit

Permalink
[OpenMP] Add CMake option to disable libarcher support
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jhuber6 committed Mar 31, 2023
1 parent 78ae870 commit dea2def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openmp/tools/archer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dea2def

Please sign in to comment.