We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a7b484 commit f3d682fCopy full SHA for f3d682f
IGC/cmake/igc_find_opencl_clang.cmake
@@ -110,6 +110,11 @@ elseif(${CCLANG_BUILD_PREBUILDS})
110
string(REGEX MATCH "clang version ([0-9]*\\.[0-9]*\\.[0-9]*[a-zA-Z0-9]*)" CLANG_TOOL_VERSION "${CLANG_TOOL_V_CALL}")
111
set(CLANG_TOOL_VERSION "${CMAKE_MATCH_1}")
112
113
+ # Check if we parse clang tool version correctly
114
+ if(NOT CLANG_TOOL_VERSION)
115
+ message(FATAL_ERROR "[IGC] : Cannot read version of clang tool, please check the output of execution `clang -v` : ${CLANG_TOOL_V_CALL}")
116
+ endif()
117
+
118
# Check if llvm version for IGC is newer or equal with the clang-tool version
119
if(${LLVM_PACKAGE_VERSION} VERSION_GREATER ${CLANG_TOOL_VERSION} OR
120
${LLVM_PACKAGE_VERSION} EQUAL ${CLANG_TOOL_VERSION})
0 commit comments