commit 33dbfa00107b4cb53a306fc745fa8b80ce730903 from: Sergey Bronnikov date: Thu Jun 4 13:27:46 2026 UTC cmake: raise an error if the library was not found The package with Clang runtime libraries may be missing on the host, in that case the CMake function `SetClangLibPath()` will return the library name even though it's not missing. The patch raises an error if the path returned by the compiler doesn't exist. commit - 09e12efc18043d98c96ba3d420972054b760f74b commit + 33dbfa00107b4cb53a306fc745fa8b80ce730903 blob - 9cce9f2e7997bea5a86d6e4dca6f77e81e1cb265 blob + ba02cc9cee0d4d483a3657b2022a3ac444f6ac46 --- cmake/SetClangRTLib.cmake +++ cmake/SetClangRTLib.cmake @@ -34,6 +34,9 @@ function(SetClangLibPath lib_name outvar) if (CMD_ERROR) message(FATAL_ERROR "${CMD_ERROR}") endif () + if(NOT EXISTS "${LIB_PATH}") + message(FATAL_ERROR "The library is missing: ${LIB_PATH}") + endif() set(${outvar} ${LIB_PATH} PARENT_SCOPE) message(STATUS "[SetClangRTLib] ${outvar} is ${LIB_PATH}") endfunction()