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 <chenrun1@xiaomi.com>
This commit is contained in:
chenrun1 2024-11-02 22:06:53 +08:00 committed by Xiang Xiao
parent 2c0e5e872b
commit 1fce345481
1 changed files with 1 additions and 3 deletions

View File

@ -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)