summaryrefslogtreecommitdiffstats
path: root/libgcc/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexey Gavrilov <alexey.gavrilov@mail.com>2026-03-30 17:54:13 +0700
committerAlexey Gavrilov <alexey.gavrilov@mail.com>2026-03-30 17:54:13 +0700
commit6cdf09f651586135b7cf7a8a05ba4a96cb6b3b97 (patch)
treecd6710114934270d7a68fa254613e0cbfb3807b0 /libgcc/CMakeLists.txt
parente5eb32a5123920d18a55819bcea8a23b3a3e0f4d (diff)
Move to CHECK_START messages
More convenient requirements checks way by CHECK_START message argument. Signed-off-by: Alexey Gavrilov <alexey.gavrilov@mail.com>
Diffstat (limited to 'libgcc/CMakeLists.txt')
-rw-r--r--libgcc/CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/libgcc/CMakeLists.txt b/libgcc/CMakeLists.txt
index 6fd97b6..d32ba04 100644
--- a/libgcc/CMakeLists.txt
+++ b/libgcc/CMakeLists.txt
@@ -1,7 +1,8 @@
list(APPEND CMAKE_MESSAGE_CONTEXT libgcc)
-message(STATUS "Searching CRT objects")
macro(setup_crt_object_file object_file target_name)
+ message(CHECK_START "Searching ${object_file} object")
+ list(APPEND CMAKE_MESSAGE_INDENT " ")
execute_process(
COMMAND ${CMAKE_CXX_COMPILER} --print-file-name=${object_file}
OUTPUT_STRIP_TRAILING_WHITESPACE
@@ -11,20 +12,20 @@ macro(setup_crt_object_file object_file target_name)
)
if(RESULT)
+ message(CHECK_FAIL "internal error")
message(FATAL_ERROR ${ERROR_MESSAGE})
endif()
- message(STATUS "${object_file} was found at the ${PATH} path")
+ message(CHECK_PASS "found")
add_library(${target_name} OBJECT IMPORTED GLOBAL)
set_target_properties(${target_name} PROPERTIES
IMPORTED_OBJECTS ${PATH}
)
-
+ list(POP_BACK CMAKE_MESSAGE_INDENT)
endmacro()
# TODO: set platform specific CRT objects
setup_crt_object_file(crtbegin.o CRTBEGIN)
setup_crt_object_file(crtend.o CRTEND)
-message(STATUS "The CRT objects were found")
add_subdirectory(${ObjectiveProject_ARCHITECTURE})