Skip to content

Commit 1fa4778

Browse files
[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).
1 parent ba471ba commit 1fa4778

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/cmake/modules/GetErrcMessages.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function(get_errc_messages outvar)
3838
set(${outvar} ${errc_result} PARENT_SCOPE)
3939
else()
4040
set(${outvar} "" PARENT_SCOPE)
41+
message(NOTICE "${errc_compile_errors}")
4142
message(STATUS "Failed to get errc messages")
4243
endif ()
4344
endfunction()

0 commit comments

Comments
 (0)