This is an automated email from the ASF dual-hosted git repository.
simbit18 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 02407ad192b arch/risc-v/cmake: fix linker option case in
Toolchain.cmake.
02407ad192b is described below
commit 02407ad192b3a10aae01f3a977005f06c5b4159c
Author: yanxingyu17 <[email protected]>
AuthorDate: Mon Apr 20 21:20:16 2026 +0800
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 <[email protected]>
---
arch/risc-v/src/cmake/Toolchain.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/risc-v/src/cmake/Toolchain.cmake
b/arch/risc-v/src/cmake/Toolchain.cmake
index e749424bd44..2e0a9614293 100644
--- a/arch/risc-v/src/cmake/Toolchain.cmake
+++ b/arch/risc-v/src/cmake/Toolchain.cmake
@@ -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()