From 1fce34548190eebf887ef72e38ce4c100bed95af Mon Sep 17 00:00:00 2001 From: chenrun1 Date: Sat, 2 Nov 2024 22:06:53 +0800 Subject: [PATCH] libc/machine/CMakeLists: should alaways build arch_atomic.c Summary: This issue comes from https://github.com/apache/nuttx/pull/14570. In the previous Atomic implementation https://github.com/apache/nuttx/pull/13044, we have removed the CONFIG_LIBC_ARCH_ATOMIC macro, so arch_atomic.c should always be compiled. Signed-off-by: chenrun1 --- libs/libc/machine/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/libc/machine/CMakeLists.txt b/libs/libc/machine/CMakeLists.txt index 1518564e76..5f4869dc7d 100644 --- a/libs/libc/machine/CMakeLists.txt +++ b/libs/libc/machine/CMakeLists.txt @@ -22,9 +22,7 @@ add_subdirectory(${CONFIG_ARCH}) -if(CONFIG_LIBC_ARCH_ATOMIC) - target_sources(c PRIVATE arch_atomic.c) -endif() +target_sources(c PRIVATE arch_atomic.c) if(CONFIG_MM_KASAN) target_sources(c PRIVATE arch_libc.c)