Have CMake error out on Windows when user wants OMPT support

Currently, OMPT support requires the weak attribute which isn't supported
on Windows.  This patch has CMake error out when LIBOMP_OMPT_SUPPORT=true
and the users is building on Windows.
http://lists.cs.uiuc.edu/pipermail/openmp-dev/2015-June/000692.html

Patch by Jonas Hahnfeld

llvm-svn: 239912
This commit is contained in:
Jonathan Peyton 2015-06-17 15:43:34 +00:00
parent 58675d4f84
commit b689dede58
2 changed files with 7 additions and 4 deletions

View File

@ -139,14 +139,14 @@ Should the Fortran modules be created (requires Fortran compiler)
Should include stats-gathering code?
-DLIBOMP_OMPT_SUPPORT=off|on
Should OMPT support be turned on?
If ompt_support is off, then both ompt_blame and ompt_trace are ignored.
Should OMPT support be turned on? (Not supported on Windows)
If LIBOMP_OMPT_SUPPORT is off, then both ompt_blame and ompt_trace are ignored.
-DLIBOMP_OMPT_BLAME=on|off
should OMPT blame functionality be turned on?
Should OMPT blame functionality be turned on?
-DLIBOMP_OMPT_TRACE=on|off
should OMPT trace functionality be turned on?
Should OMPT trace functionality be turned on?
=====================
==== Micro tests ====

View File

@ -333,6 +333,9 @@ endif()
if(${LIBOMP_USE_ADAPTIVE_LOCKS} AND NOT(${IA32} OR ${INTEL64}))
error_say("Adaptive locks (TSX) functionality is only supported on x86 Architecture")
endif()
if(${LIBOMP_OMPT_SUPPORT} AND ${WINDOWS})
error_say("OpenMP Tools Interface is not supported on Windows")
endif()
###############################################
# - Create the suffix for the export directory