aboutsummaryrefslogtreecommitdiff
path: root/openmp/libompd
diff options
context:
space:
mode:
authorVignesh Balasubramanian <Vignesh.Balasubrmanian@amd.com>2022-07-12 15:48:51 +0530
committerVignesh Balasubramanian <Vignesh.Balasubrmanian@amd.com>2022-07-12 16:01:59 +0530
commit9dc0d6aaa1e27b97e5d163f2590cf24b769a0c36 (patch)
tree683b373c340b59f6cd703124bee286375e524b39 /openmp/libompd
parent1e3ee766bb580ead0a482f213255d334f9af8276 (diff)
downloadllvm-9dc0d6aaa1e27b97e5d163f2590cf24b769a0c36.zip
llvm-9dc0d6aaa1e27b97e5d163f2590cf24b769a0c36.tar.gz
llvm-9dc0d6aaa1e27b97e5d163f2590cf24b769a0c36.tar.bz2
Fixing build bot failure due to python-pip unavailability.
commit: 51d3f421f48f7c888c37a13be049a4ca8b61436e failed due to missing python-pip om machine. Now the ompd gdb-plugin code will be skipped with a warning if pip is not available in the machine.
Diffstat (limited to 'openmp/libompd')
-rw-r--r--openmp/libompd/gdb-plugin/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/openmp/libompd/gdb-plugin/CMakeLists.txt b/openmp/libompd/gdb-plugin/CMakeLists.txt
index 79799999..f33cc19 100644
--- a/openmp/libompd/gdb-plugin/CMakeLists.txt
+++ b/openmp/libompd/gdb-plugin/CMakeLists.txt
@@ -33,6 +33,10 @@ if(DIST)
"--version"
OUTPUT_VARIABLE PIP_VERSION_INFO
RESULT_VARIABLE HAD_ERROR)
+ if (NOT ${HAD_ERROR} EQUAL 0)
+ message(WARNING "PIP command failed, gdb-plugin disabled.")
+ return()
+ endif ()
string(REGEX REPLACE " " ";" PIP_VERSION_INFO "${PIP_VERSION_INFO}")
list(GET PIP_VERSION_INFO 1 PIP_VERSION)
set(PYSYSFLAG "")