Skip to content

Commit

Permalink
compiler-rt: Build clang_rt.profile library when possible
Browse files Browse the repository at this point in the history
To enable clang_rt.profile library do something like the following in
local.conf or your distro configuration.

    PACKAGECONFIG:pn-compiler-rt = "profile"

The clang_rt.profile library is used to collect coverage information. It is a
static library, so does not introduce any additional footprint in
target images.

Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com>
  • Loading branch information
esben authored and kraj committed Jun 2, 2022
1 parent 64362c7 commit 659d431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes-devtools/clang/compiler-rt_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ BUILD_NM:toolchain-clang = "llvm-nm"

PACKAGECONFIG ??= ""
PACKAGECONFIG[crt] = "-DCOMPILER_RT_BUILD_CRT:BOOL=ON,-DCOMPILER_RT_BUILD_CRT:BOOL=OFF"
PACKAGECONFIG[profile] ="-DCOMPILER_RT_BUILD_PROFILE=ON,-DCOMPILER_RT_BUILD_PROFILE=OFF"

HF = "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}"
HF[vardepvalue] = "${HF}"
Expand All @@ -61,7 +62,6 @@ EXTRA_OECMAKE += "-DCOMPILER_RT_STANDALONE_BUILD=OFF \
-DCOMPILER_RT_BUILD_SANITIZERS=OFF \
-DCOMPILER_RT_BUILD_MEMPROF=OFF \
-DCOMPILER_RT_BUILD_LIBFUZZER=OFF \
-DCOMPILER_RT_BUILD_PROFILE=OFF \
-DLLVM_ENABLE_PROJECTS='compiler-rt' \
-DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX} \
"
Expand Down

0 comments on commit 659d431

Please sign in to comment.