From 8e6e508e8fb5ae02c69c710614ac865b30011467 Mon Sep 17 00:00:00 2001 From: Nikolai Kholiavin Date: Wed, 6 Dec 2023 13:19:11 +0000 Subject: [PATCH] [OHOS][build] Add atomic functions to the compiler-rt builtins To support arbitrary size atomics from STL, software support is required. Enable and provide it in the compiler-rt builtins library for OHOS targets. Issue: https://gitee.com/openharmony/third_party_llvm-project/issues/I8MAPC Signed-off-by: Nikolai Kholiavin --- llvm-build/build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm-build/build.py b/llvm-build/build.py index f754b1f85fce..1ded24d22230 100755 --- a/llvm-build/build.py +++ b/llvm-build/build.py @@ -1354,6 +1354,7 @@ class LlvmLibs(BuildUtils): crt_defines['COMPILER_RT_HWASAN_WITH_INTERCEPTORS'] = 'OFF' crt_defines['COMPILER_RT_BUILD_SANITIZERS'] = \ 'OFF' if llvm_triple == self.liteos_triple('arm') or first_time else 'ON' + crt_defines['COMPILER_RT_EXCLUDE_ATOMIC_BUILTIN'] = 'OFF' crt_defines['COMPILER_RT_DEFAULT_TARGET_TRIPLE'] = llvm_triple crt_cmake_path = os.path.abspath(os.path.join(self.build_config.LLVM_PROJECT_DIR, 'compiler-rt')) self.rm_cmake_cache(crt_path) -- Gitee