From 31d39bfc5f3e2d2273408b0e9376cdac50705693 Mon Sep 17 00:00:00 2001 From: Andrey Churbanov Date: Fri, 31 Mar 2017 16:20:07 +0000 Subject: [PATCH] Fix for bug https://llvm.org/bugs/show_bug.cgi?id=32456 ITT Notify disabled for static build of OpenMP RTL. Differential Revision: https://reviews.llvm.org/D31466 llvm-svn: 299230 --- openmp/runtime/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openmp/runtime/CMakeLists.txt b/openmp/runtime/CMakeLists.txt index 660b82b..555fd9f 100644 --- a/openmp/runtime/CMakeLists.txt +++ b/openmp/runtime/CMakeLists.txt @@ -307,6 +307,11 @@ if(WIN32 AND NOT LIBOMP_ENABLE_SHARED) libomp_error_say("Static libraries requested but not available on Windows") endif() +if(LIBOMP_USE_ITT_NOTIFY AND NOT LIBOMP_ENABLE_SHARED) + message(STATUS "ITT Notify not supported for static libraries - forcing ITT Notify off") + set(LIBOMP_USE_ITT_NOTIFY FALSE) +endif() + # OMPT-support set(LIBOMP_OMPT_DEBUG FALSE CACHE BOOL "Trace OMPT initialization?") -- 2.7.4