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:
yanxingyu17
2026-04-20 21:20:16 +08:00
committed by simbit18
parent 50fb11492c
commit 02407ad192
+1 -1
View File
@@ -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()