print memory usage after final linking

This commit is contained in:
Babz 2021-09-12 22:05:09 +02:00
parent afdbea7625
commit 3ff8c4eb17
1 changed files with 4 additions and 1 deletions

View File

@ -101,7 +101,10 @@ set(FLAGS_PRINTF
)
set(CMAKE_ASM_FLAGS "-x assembler-with-cpp")
add_link_options(-flto)
add_link_options(
-flto
-Wl,--print-memory-usage
)
add_library(Printf ${SOURCES_PRINTF})
target_compile_options(Printf PRIVATE ${FLAGS_PRINTF})