When arch detection fails, show the compiler output

This commit is contained in:
Tim Angus committed 2025-10-12 12:25:06 +01:00
1 parent c49d4d96bf
commit f63b5cf8b4
1 file changed
+2 -2
+2 -2
View File
@@ -15,6 +15,6 @@ try_compile(COMPILE_SUCCESS
string(REGEX MATCH "^[^\@]+@([a-zA-Z0-9_]+)@.*$" HAVE_MATCH ${COMPILE_OUTPUT})
set(ARCH ${CMAKE_MATCH_1})
if(NOT COMPILE_SUCCESS OR RUN_EXITCODE OR NOT HAVE_MATCH OR NOT ARCH)
message(FATAL_ERROR "Architecture detection failed")
if(NOT COMPILE_SUCCESS OR NOT HAVE_MATCH OR NOT ARCH)
message(FATAL_ERROR "Architecture detection failed: ${COMPILE_OUTPUT}")
endif()