diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-11-11 23:03:16 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-11-13 09:40:54 -0800 |
commit | b77d1e5ce3a34803ebeba9b83655c20eebfed12c (patch) | |
tree | e8db91b1abf472864cf5ef70e182939ccc36ac7a | |
parent | 8971f1eec1d603187185b3c85cb09ad6da4a69ed (diff) | |
download | meta-clang-b77d1e5ce3a34803ebeba9b83655c20eebfed12c.tar.gz |
clang: Use lld for LTO link
Core uses a dumb utility called dwarfsrcfiles to grok source file names
and it assumes that .o and .a files are good old ELF files, that is not
true when using LTO in which case it becomes IR code, this tool starts
to puke, therefore disable using this tool
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | classes/clang.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass index 40efa95..2d1fa2d 100644 --- a/classes/clang.bbclass +++ b/classes/clang.bbclass | |||
@@ -9,7 +9,8 @@ RANLIB_toolchain-clang = "${HOST_PREFIX}llvm-ranlib" | |||
9 | AR_toolchain-clang = "${HOST_PREFIX}llvm-ar" | 9 | AR_toolchain-clang = "${HOST_PREFIX}llvm-ar" |
10 | NM_toolchain-clang = "${HOST_PREFIX}llvm-nm" | 10 | NM_toolchain-clang = "${HOST_PREFIX}llvm-nm" |
11 | 11 | ||
12 | LTO_toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'thin-lto', '-flto=thin', '-flto ', d)}" | 12 | LTO_toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'thin-lto', '-flto=thin', '-flto -fuse-ld=lld', d)}" |
13 | PACKAGE_DEBUG_SPLIT_STYLE_toolchain-clang = "debug-without-src" | ||
13 | 14 | ||
14 | export CLANG_TIDY_toolchain-clang = "${HOST_PREFIX}clang-tidy" | 15 | export CLANG_TIDY_toolchain-clang = "${HOST_PREFIX}clang-tidy" |
15 | 16 | ||