From 72f2ed83a58a58a01f1ee46d67ea4f57cae9514c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?=
 <bernhard.rosenkraenzer.ext@huawei.com>
Date: Fri, 12 Mar 2021 15:35:26 +0100
Subject: [PATCH] Fix compiling ACTS with clang toolchains
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

ACTS uses -fprofile-instr-generate, creating a need to pull in
compiler-rt's static profiling library when using clang

Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
---
 .../recipes-ohos-xts-acts/ohos-xts-acts/ohos-xts-acts_git.bb     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-ohos-acts/recipes-ohos-xts-acts/ohos-xts-acts/ohos-xts-acts_git.bb b/meta-ohos-acts/recipes-ohos-xts-acts/ohos-xts-acts/ohos-xts-acts_git.bb
index 2d968d9d..c47f9220 100644
--- a/meta-ohos-acts/recipes-ohos-xts-acts/ohos-xts-acts/ohos-xts-acts_git.bb
+++ b/meta-ohos-acts/recipes-ohos-xts-acts/ohos-xts-acts/ohos-xts-acts_git.bb
@@ -29,6 +29,7 @@ do_install_append() {
 FILES_${PN} += "${datadir}/acts-data/*"
 
 DEPENDS += "ohos-googletest ohos-libsec mtd-utils-native"
+DEPENDS_append_toolchain-clang += "compiler-rt"
 RRECOMMENDS_${PN} += "\
     kernel-module-block2mtd \
     ltp \
-- 
GitLab