From e5eb32a5123920d18a55819bcea8a23b3a3e0f4d Mon Sep 17 00:00:00 2001 From: Alexey Gavrilov Date: Mon, 30 Mar 2026 17:50:25 +0700 Subject: Cmake status information output Reinforce of compiler, C runtime, architecture checks at cmake configuration. Compiler check means continue building at the cmake configure stage only for supported compilers. Use unsupported compiler involves immediate build process stopping. C runtime check means finding of runtime objects. Especially for *crtbegin.o* and *crtend.o* files. Architecture means *ObjectiveProject_ARCHITECTURE* variable is set. That variable configure at toolchain file by default and cannot override if toolchain file is passed. TODO - Image creation - Build under window platform (optional) Signed-off-by: Alexey Gavrilov --- libgcc/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libgcc/CMakeLists.txt') diff --git a/libgcc/CMakeLists.txt b/libgcc/CMakeLists.txt index b5b2abc..6fd97b6 100644 --- a/libgcc/CMakeLists.txt +++ b/libgcc/CMakeLists.txt @@ -1,3 +1,6 @@ +list(APPEND CMAKE_MESSAGE_CONTEXT libgcc) +message(STATUS "Searching CRT objects") + macro(setup_crt_object_file object_file target_name) execute_process( COMMAND ${CMAKE_CXX_COMPILER} --print-file-name=${object_file} @@ -11,6 +14,7 @@ macro(setup_crt_object_file object_file target_name) message(FATAL_ERROR ${ERROR_MESSAGE}) endif() + message(STATUS "${object_file} was found at the ${PATH} path") add_library(${target_name} OBJECT IMPORTED GLOBAL) set_target_properties(${target_name} PROPERTIES IMPORTED_OBJECTS ${PATH} @@ -22,4 +26,5 @@ endmacro() setup_crt_object_file(crtbegin.o CRTBEGIN) setup_crt_object_file(crtend.o CRTEND) -add_subdirectory(${ARCH}) +message(STATUS "The CRT objects were found") +add_subdirectory(${ObjectiveProject_ARCHITECTURE}) -- cgit v1.2.3