diff options
| author | Alexey Gavrilov <alexey.gavrilov@mail.com> | 2026-03-30 17:50:25 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <alexey.gavrilov@mail.com> | 2026-03-30 17:50:25 +0700 |
| commit | e5eb32a5123920d18a55819bcea8a23b3a3e0f4d (patch) | |
| tree | dfd7935ba4e911ba4354b5f611d841769c264c62 /libgcc/CMakeLists.txt | |
| parent | 256b2c871a0f3ac0175de298b78c6ea527f42f60 (diff) | |
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 <alexey.gavrilov@mail.com>
Diffstat (limited to 'libgcc/CMakeLists.txt')
| -rw-r--r-- | libgcc/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
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}) |
