cmake: Set memusage property for lld
lld gained support for the --print-memory-usage flag somewhat recently (May 2023). Associate this flag with the memusage property when building with lld, similar to what is done for GNU ld. Signed-off-by: Jonathon Penix <jpenix@quicinc.com>
This commit is contained in:
parent
7d676c2331
commit
9fc9eb5ddb
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
|||
# Since lld is a drop in replacement for ld, we can just use ld's flags
|
||||
include(${ZEPHYR_BASE}/cmake/linker/ld/${COMPILER}/linker_flags.cmake OPTIONAL)
|
||||
|
||||
check_set_linker_property(TARGET linker PROPERTY memusage "${LINKERFLAGPREFIX},--print-memory-usage")
|
||||
|
||||
set_property(TARGET linker PROPERTY no_position_independent "${LINKERFLAGPREFIX},--no-pie")
|
||||
|
||||
set_property(TARGET linker PROPERTY partial_linking "-r")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue