[llvm] 1fa4778 - [CMake] Output the error message when get_errc_messages fails

John Brawn via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 13 08:05:38 PST 2022


Author: John Brawn
Date: 2022-01-13T16:05:15Z
New Revision: 1fa4778d03c10bb93e018f885527740c6577a5b3

URL: https://github.com/llvm/llvm-project/commit/1fa4778d03c10bb93e018f885527740c6577a5b3
DIFF: https://github.com/llvm/llvm-project/commit/1fa4778d03c10bb93e018f885527740c6577a5b3.diff

LOG: [CMake] Output the error message when get_errc_messages fails

This makes it easier figure out the cause when it fails, and is what
check_z3_version does (the other place we use try_run).

Added: 
    

Modified: 
    llvm/cmake/modules/GetErrcMessages.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/GetErrcMessages.cmake b/llvm/cmake/modules/GetErrcMessages.cmake
index b04f269d79d2..a8c2272b9d3f 100644
--- a/llvm/cmake/modules/GetErrcMessages.cmake
+++ b/llvm/cmake/modules/GetErrcMessages.cmake
@@ -38,6 +38,7 @@ function(get_errc_messages outvar)
         set(${outvar} ${errc_result} PARENT_SCOPE)
     else()
         set(${outvar} "" PARENT_SCOPE)
+        message(NOTICE "${errc_compile_errors}")
         message(STATUS "Failed to get errc messages")
     endif ()
 endfunction()


        


More information about the llvm-commits mailing list