From f63b5cf8b43e4238f2a9f56c8cc08c8c712776cb Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sun, 12 Oct 2025 12:24:03 +0100 Subject: [PATCH] When arch detection fails, show the compiler output --- cmake/utils/arch.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/utils/arch.cmake b/cmake/utils/arch.cmake index 7c6d6d13..00a43f35 100644 --- a/cmake/utils/arch.cmake +++ b/cmake/utils/arch.cmake @@ -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()