libc_atomic: add file to cmake script

resolves an error where atomic related symbols cannot be found at cmake compile time.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2023-10-31 17:40:04 +08:00 committed by Mateusz Szafoni
parent c831c8cc56
commit 234dd95e0b

View File

@ -19,3 +19,7 @@
# ##############################################################################
add_subdirectory(${CONFIG_ARCH})
if(CONFIG_LIBC_ARCH_ATOMIC)
target_sources(c PRIVATE arch_atomic.c)
endif()