[CMake] Output the error message when get_errc_messages fails
authorJohn Brawn <john.brawn@arm.com>
Thu, 13 Jan 2022 15:54:20 +0000 (15:54 +0000)
committerJohn Brawn <john.brawn@arm.com>
Thu, 13 Jan 2022 16:05:15 +0000 (16:05 +0000)
commit1fa4778d03c10bb93e018f885527740c6577a5b3
treee7ff7e3f4603649d9b8fe40852e94ebdc97fbd29
parentba471ba8d2a37617684e0bd87fe15b583f7e7de0
[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).
llvm/cmake/modules/GetErrcMessages.cmake