From e306d914152b4f59b63153c37d29c6021ee7fd7f Mon Sep 17 00:00:00 2001 From: Lyupa Anastasia Date: Fri, 12 Jul 2024 16:11:14 +0300 Subject: [PATCH] [build] Build compiler-rt first when compile llvm Compile libunwind after compiler-rt Issue: https://gitee.com/openharmony/third_party_llvm-project/issues/IA94CB Signed-off-by: Lyupa Anastasia --- llvm-build/build.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/llvm-build/build.py b/llvm-build/build.py index 50e1d69c4904..0e97dd4c0d47 100755 --- a/llvm-build/build.py +++ b/llvm-build/build.py @@ -767,6 +767,13 @@ class LlvmCore(BuildUtils): common_defines, env=env) + # First of all build compiler-rt because it's needed to be built before libunwind and etc. + if not self.build_config.build_only: + self.invoke_ninja(out_path=build_dir, + env=env, + target=["compiler-rt"], + install=install) + self.invoke_ninja(out_path=build_dir, env=env, target=build_target, -- Gitee