mirror of
https://github.com/intel/llvm.git
synced 2026-02-07 16:11:27 +08:00
Fixing build bot failure due to python-pip unavailability.
commit: 51d3f421f4
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.
This commit is contained in:
@@ -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 "")
|
||||
|
||||
Reference in New Issue
Block a user