[Openmp-commits] [PATCH] D134275: [OpenMP] [OMPD] Build gdb-plugin code only when python3 development files are available.
Vignesh Balasubramanian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Oct 5 23:09:24 PDT 2022
Vigneshbalu updated this revision to Diff 465658.
Vigneshbalu added a comment.
resolved review comments.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134275/new/
https://reviews.llvm.org/D134275
Files:
openmp/libompd/CMakeLists.txt
openmp/libompd/gdb-plugin/CMakeLists.txt
Index: openmp/libompd/gdb-plugin/CMakeLists.txt
===================================================================
--- openmp/libompd/gdb-plugin/CMakeLists.txt
+++ openmp/libompd/gdb-plugin/CMakeLists.txt
@@ -13,9 +13,6 @@
${CMAKE_MODULE_PATH}
)
-find_package (Python3 COMPONENTS Interpreter Development)
-find_package (PythonLibs REQUIRED)
-
include_directories (${OMPD_INCLUDE_PATH})
include_directories (${LIBOMP_INCLUDE_DIR})
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/python-module/ompd/__init__.py
Index: openmp/libompd/CMakeLists.txt
===================================================================
--- openmp/libompd/CMakeLists.txt
+++ openmp/libompd/CMakeLists.txt
@@ -8,10 +8,13 @@
#//===----------------------------------------------------------------------===//
#
+find_package (Python3 COMPONENTS Interpreter Development)
+option(LIBOMP_OMPD_GDB_SUPPORT "Build gdb-plugin code that enables OMPD support in GDB." ${Python3_FOUND})
+
if(LIBOMP_OMPD_SUPPORT)
set(OMPD_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/src/)
add_subdirectory(src)
- if(NOT DISABLE_OMPD_GDB_PLUGIN)
+ if(LIBOMP_OMPD_GDB_SUPPORT)
add_subdirectory(gdb-plugin)
endif()
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134275.465658.patch
Type: text/x-patch
Size: 1218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221006/da88cec3/attachment.bin>
More information about the Openmp-commits
mailing list