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 33439601989480143f3329b4f24d92404a8c7038 Author: Junbo Zheng <[email protected]> AuthorDate: Sat Oct 24 23:08:46 2026 +0800 sim/cmake: remove duplicated ubsan link option The ubsan block in Toolchain.cmake added -fsanitize=undefined to the link options twice (lines 180 and 182), 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 16e32b43ec7..cb75b9c696e 100644 --- a/arch/sim/src/cmake/Toolchain.cmake +++ b/arch/sim/src/cmake/Toolchain.cmake @@ -178,7 +178,6 @@ endif() if(CONFIG_SIM_UBSAN) add_link_options(-fsanitize=undefined) add_compile_options(-fsanitize=undefined) - add_link_options(-fsanitize=undefined) else() if(CONFIG_MM_UBSAN_ALL) add_compile_options(${CONFIG_MM_UBSAN_OPTION})
