Skip to content

Commit 9dc0d6a

Browse files
committed
Fixing build bot failure due to python-pip unavailability.
commit: 51d3f42 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.
1 parent 1e3ee76 commit 9dc0d6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

openmp/libompd/gdb-plugin/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ if(DIST)
3333
"--version"
3434
OUTPUT_VARIABLE PIP_VERSION_INFO
3535
RESULT_VARIABLE HAD_ERROR)
36+
if (NOT ${HAD_ERROR} EQUAL 0)
37+
message(WARNING "PIP command failed, gdb-plugin disabled.")
38+
return()
39+
endif ()
3640
string(REGEX REPLACE " " ";" PIP_VERSION_INFO "${PIP_VERSION_INFO}")
3741
list(GET PIP_VERSION_INFO 1 PIP_VERSION)
3842
set(PYSYSFLAG "")

0 commit comments

Comments
 (0)