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

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

commit feaaebaa9d9b13311f7479e30d2b7ea872025e8c
Author: Junbo Zheng <[email protected]>
AuthorDate: Sat Oct 24 23:08:46 2026 +0800

    sim/cmake: remove duplicated asan link option
    
    The asan block in Toolchain.cmake added -fsanitize=address to the
    link options twice (lines 166 and 170), which only duplicated the
    flag on the link command line. Drop the second occurrence.
    
    Signed-off-by: Junbo Zheng <[email protected]>
---
 arch/sim/src/cmake/Toolchain.cmake | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/sim/src/cmake/Toolchain.cmake 
b/arch/sim/src/cmake/Toolchain.cmake
index 3b600ab781a..16e32b43ec7 100644
--- a/arch/sim/src/cmake/Toolchain.cmake
+++ b/arch/sim/src/cmake/Toolchain.cmake
@@ -167,7 +167,6 @@ if(CONFIG_SIM_ASAN)
   add_compile_options(-fsanitize-address-use-after-scope)
   add_compile_options(-fsanitize=pointer-compare)
   add_compile_options(-fsanitize=pointer-subtract)
-  add_link_options(-fsanitize=address)
 elseif(CONFIG_MM_KASAN_INSTRUMENT_ALL)
   add_compile_options(-fsanitize=kernel-address)
 endif()

Reply via email to