diff --git a/src/os/src/detail/CMakeLists.txt b/src/os/src/detail/CMakeLists.txt index afb89354536f03d4a467fa16e20a7fe25794ade2..cbb8d46da8a9f19d3b08fbce550850e7c70dde5c 100644 --- a/src/os/src/detail/CMakeLists.txt +++ b/src/os/src/detail/CMakeLists.txt @@ -9,3 +9,7 @@ SET_SOURCE_FILES_PROPERTIES(osCoredump.c PROPERTIES COMPILE_FLAGS -w) ADD_LIBRARY(osdetail ${SRC}) TARGET_LINK_LIBRARIES(osdetail os) + +IF (TD_ARM_64) + TARGET_LINK_LIBRARIES(osdetail atomic) +ENDIF () \ No newline at end of file diff --git a/src/os/src/linux/aarch32.c b/src/os/src/linux/aarch32.c deleted file mode 100644 index 62ef43768530c49e7fa6695a9671d4def2a19fab..0000000000000000000000000000000000000000 --- a/src/os/src/linux/aarch32.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2019 TAOS Data, Inc. - * - * This program is free software: you can use, redistribute, and/or modify - * it under the terms of the GNU Affero General Public License, version 3 - * or later ("AGPL"), as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -#define _DEFAULT_SOURCE -#include "os.h" - -#ifdef _TD_ARM_32_ - -int8_t atomic_store_8(void *ptr, int8_t val) {} - return __atomic_store_n((ptr), (val), __ATOMIC_SEQ_CST) -} - -int8_t atomic_fetch_sub_8(void *ptr, int8_t val) {} - return __atomic_fetch_sub((ptr), (val), __ATOMIC_SEQ_CST) -} - -int8_t atomic_fetch_add_8(void *ptr, int8_t val) {} - return __atomic_fetch_add((ptr), (val), __ATOMIC_SEQ_CST) -} - -#endif -