[Openmp-commits] [openmp] 9dc0d6a - Fixing build bot failure due to python-pip unavailability.

Vignesh Balasubramanian via Openmp-commits openmp-commits at lists.llvm.org
Tue Jul 12 03:32:16 PDT 2022


Author: Vignesh Balasubramanian
Date: 2022-07-12T16:01:59+05:30
New Revision: 9dc0d6aaa1e27b97e5d163f2590cf24b769a0c36

URL: https://github.com/llvm/llvm-project/commit/9dc0d6aaa1e27b97e5d163f2590cf24b769a0c36
DIFF: https://github.com/llvm/llvm-project/commit/9dc0d6aaa1e27b97e5d163f2590cf24b769a0c36.diff

LOG: 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.

Added: 
    

Modified: 
    openmp/libompd/gdb-plugin/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/openmp/libompd/gdb-plugin/CMakeLists.txt b/openmp/libompd/gdb-plugin/CMakeLists.txt
index 7979999987955..f33cc198fdea9 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 "")


        


More information about the Openmp-commits mailing list