From: Andreas Beckmann Date: Tue, 15 Mar 2022 09:24:11 +0000 (+0100) Subject: [PATCH 1003/1017] llc --version no longer exits with a non-zero return code X-Git-Tag: archive/raspbian/3.0-7+rpi1^2~26 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=926388e1df4342214339897d75fd6a090a9ec7ca;p=pocl.git [PATCH 1003/1017] llc --version no longer exits with a non-zero return code Gbp-Pq: Name 1003-llc-version-no-longer-exits-with-a-non-zero-return-c.patch --- diff --git a/cmake/LLVM.cmake b/cmake/LLVM.cmake index 926b977..73d8b6e 100644 --- a/cmake/LLVM.cmake +++ b/cmake/LLVM.cmake @@ -672,10 +672,9 @@ endif() if(ENABLE_HOST_CPU_DEVICES AND NOT DEFINED LLC_HOST_CPU_AUTO) message(STATUS "Find out LLC host CPU with ${LLVM_LLC}") execute_process(COMMAND ${LLVM_LLC} "--version" RESULT_VARIABLE RES_VAR OUTPUT_VARIABLE OUTPUT_VAR) - # WTF, ^^ has return value 1 - #if(RES_VAR) - # message(FATAL_ERROR "Error ${RES_VAR} while determining LLC host CPU") - #endif() + if(RES_VAR) + message(FATAL_ERROR "Error ${RES_VAR} while determining LLC host CPU") + endif() if(OUTPUT_VAR MATCHES "Host CPU: ([^ ]*)") # sigh... STRING(STRIP is to workaround regexp bug in cmake