summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-01-23 06:56:01 +0100
committerHans Wennborg <hans@chromium.org>2020-01-24 19:40:09 +0100
commitb86c3b26acfb7365079cadf0b8b920c2074072d9 (patch)
treed4019c5e8631402d67e57ed63e47e9cbebfa67c8
parent4d5a200f31d565cf7762a3cde30375f5d8a309c6 (diff)
downloadbcm5719-llvm-b86c3b26acfb7365079cadf0b8b920c2074072d9.tar.gz
bcm5719-llvm-b86c3b26acfb7365079cadf0b8b920c2074072d9.zip
[openmp] Disable archer if LIBOMP_OMPT_SUPPORT is off
This fixed build failures due to missing ompt headers. See https://bugs.gentoo.org/700762. Differential Revision: https://reviews.llvm.org/D73249 (cherry picked from commit 3c545e4b7318c337bed43d5bc76aad040565f1ef)
-rw-r--r--openmp/tools/archer/CMakeLists.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/openmp/tools/archer/CMakeLists.txt b/openmp/tools/archer/CMakeLists.txt
index df1cf9d17af..85405affe8f 100644
--- a/openmp/tools/archer/CMakeLists.txt
+++ b/openmp/tools/archer/CMakeLists.txt
@@ -8,13 +8,15 @@
-include_directories(${LIBOMP_INCLUDE_DIR})
+if(LIBOMP_OMPT_SUPPORT)
+ include_directories(${LIBOMP_INCLUDE_DIR})
-add_library(archer SHARED ompt-tsan.cpp)
-add_library(archer_static STATIC ompt-tsan.cpp)
+ add_library(archer SHARED ompt-tsan.cpp)
+ add_library(archer_static STATIC ompt-tsan.cpp)
-install(TARGETS archer archer_static
- LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
- ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR})
+ install(TARGETS archer archer_static
+ LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR})
-add_subdirectory(tests)
+ add_subdirectory(tests)
+endif()
OpenPOWER on IntegriCloud