This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 72c57b2e22a02a21c7a47e48b94a97cfc3ef87b6
Author: zhangyuan29 <[email protected]>
AuthorDate: Wed Jul 2 20:17:19 2025 +0800

    tricore: add NO_LTO for tricore gnu
    
    Define NO_LTO for the GNU toolchain like the other architectures, so
    sources that must not be built with LTO (e.g. selected with the NO_LTO
    property in CMake) get -fno-lto.
    
    Signed-off-by: zhangyuan29 <[email protected]>
---
 arch/tricore/src/cmake/ToolchainGnuc.cmake | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/tricore/src/cmake/ToolchainGnuc.cmake 
b/arch/tricore/src/cmake/ToolchainGnuc.cmake
index 655ddfdd06a..32a47951a54 100644
--- a/arch/tricore/src/cmake/ToolchainGnuc.cmake
+++ b/arch/tricore/src/cmake/ToolchainGnuc.cmake
@@ -118,6 +118,8 @@ elseif(CONFIG_LTO_FULL)
   endif()
 endif()
 
+set(NO_LTO "-fno-lto")
+
 # Debug link map
 
 if(CONFIG_DEBUG_LINK_MAP)

Reply via email to