[Openmp-commits] [PATCH] D18244: Expose the option to disable building with ITT

Hal Finkel via Openmp-commits openmp-commits at lists.llvm.org
Thu Mar 17 08:21:21 PDT 2016


hfinkel created this revision.
hfinkel added reviewers: jlpeyton, tlwilmar, AndreyChurbanov.
hfinkel added a subscriber: openmp-commits.
Herald added a subscriber: mcrosier.

For the purposes of building the OpenMP runtime library on non-x86 platforms (especially when statically linking because ittnotify_static.c calls dlopen, etc.), ITT sometimes needs to be disabled. We currently have an option for this, but it is forced on. Making this an option allows turning this off without editing the CMake file.


http://reviews.llvm.org/D18244

Files:
  runtime/CMakeLists.txt

Index: runtime/CMakeLists.txt
===================================================================
--- runtime/CMakeLists.txt
+++ runtime/CMakeLists.txt
@@ -201,7 +201,8 @@
 endif()
 
 # Include itt notify interface? Right now, always.
-set(LIBOMP_USE_ITT_NOTIFY TRUE)
+set(LIBOMP_USE_ITT_NOTIFY TRUE CACHE BOOL
+  "Use the ITT notify interface")
 
 # normal, profile, stubs library.
 set(NORMAL_LIBRARY FALSE)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18244.50934.patch
Type: text/x-patch
Size: 410 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160317/68e84327/attachment.bin>


More information about the Openmp-commits mailing list