From 9536990d2633cb62cd0eee0296dbdaf1215f65eb Mon Sep 17 00:00:00 2001 From: Andreas Beckmann Date: Tue, 15 Mar 2022 10:24:11 +0100 Subject: [PATCH] [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 --- cmake/LLVM.cmake | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.30.2