mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 02:18:38 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user