mirror of
https://github.com/apache/nuttx.git
synced 2026-05-09 23:12:17 +08:00
arch/risc-v/cmake: fix linker option case in Toolchain.cmake.
Fix lowercase -wl to correct -Wl for GCC linker pass-through option in LTO full configuration. The lowercase form is not recognized by the linker, causing --print-memory-usage to be silently ignored. Signed-off-by: v-yanxingyu <v-yanxingyu@xiaomi.com>
This commit is contained in:
@@ -106,7 +106,7 @@ elseif(CONFIG_LTO_FULL)
|
||||
if(CONFIG_ARCH_TOOLCHAIN_GNU)
|
||||
add_compile_options(-fno-builtin)
|
||||
add_compile_options(-fuse-linker-plugin)
|
||||
add_link_options(-wl,--print-memory-usage)
|
||||
add_link_options(-Wl,--print-memory-usage)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user