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

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

commit ee93e6ea0d8ebaf2c383a8b4fc7061117018b780
Author: Xiang Xiao <[email protected]>
AuthorDate: Tue Dec 6 13:18:11 2022 +0800

    boards/sim: Decouple CONFIG_MM_UBSAN_ALL from CONFIG_MM_UBSAN_ALL
    
    like other arch(e.g. arch/arm/src/common/Toolchain.defs)
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 boards/sim/sim/sim/scripts/Make.defs | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/boards/sim/sim/sim/scripts/Make.defs 
b/boards/sim/sim/sim/scripts/Make.defs
index 686d2dd660..e501b6f340 100644
--- a/boards/sim/sim/sim/scripts/Make.defs
+++ b/boards/sim/sim/sim/scripts/Make.defs
@@ -79,8 +79,11 @@ endif
 
 ifeq ($(CONFIG_SIM_UBSAN),y)
   ARCHOPTIMIZATION += -fsanitize=undefined
-else ifeq ($(CONFIG_MM_UBSAN_ALL),y)
-  ARCHOPTIMIZATION += $(CONFIG_MM_UBSAN_OPTION)
+else
+  ifeq ($(CONFIG_MM_UBSAN_ALL),y)
+    ARCHOPTIMIZATION += $(CONFIG_MM_UBSAN_OPTION)
+  endif
+
   ifeq ($(CONFIG_MM_UBSAN_TRAP_ON_ERROR),y)
     ARCHOPTIMIZATION += -fsanitize-undefined-trap-on-error
   endif

Reply via email to