This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push: new 3f823f9f2 kasantest: -fno-builtin is enabled by default 3f823f9f2 is described below commit 3f823f9f2506740d83113c8c53da19093c48175a Author: wangmingrong1 <wangmingro...@xiaomi.com> AuthorDate: Fri Jul 18 11:37:42 2025 +0800 kasantest: -fno-builtin is enabled by default The strlen function called by kasantest will be optimized by the compiler, and the strlen function implemented in NX will not be called. Adding -fno-builtin can solve the problem. Signed-off-by: wangmingrong1 <wangmingro...@xiaomi.com> --- testing/mm/kasantest/CMakeLists.txt | 1 + testing/mm/kasantest/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/mm/kasantest/CMakeLists.txt b/testing/mm/kasantest/CMakeLists.txt index ee58fa8ac..d578196c6 100644 --- a/testing/mm/kasantest/CMakeLists.txt +++ b/testing/mm/kasantest/CMakeLists.txt @@ -22,6 +22,7 @@ if(CONFIG_TESTING_KASAN) set(CFLAGS + -fno-builtin -Wno-error -Wno-use-after-free -Wno-array-bounds diff --git a/testing/mm/kasantest/Makefile b/testing/mm/kasantest/Makefile index 82edc8315..b12d00747 100644 --- a/testing/mm/kasantest/Makefile +++ b/testing/mm/kasantest/Makefile @@ -32,6 +32,6 @@ STACKSIZE = $(CONFIG_TESTING_KASAN_STACKSIZE) CFLAGS += -Wno-error -Wno-use-after-free -Wno-stringop-overflow CFLAGS += -Wno-array-bounds -Wno-free-nonheap-object CFLAGS += -Wno-unused-value -Wno-unused-variable -CFLAGS += "-O0" +CFLAGS += -fno-builtin "-O0" include $(APPDIR)/Application.mk