summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-11-11 23:03:16 -0800
committerKhem Raj <raj.khem@gmail.com>2020-11-13 09:40:54 -0800
commitb77d1e5ce3a34803ebeba9b83655c20eebfed12c (patch)
treee8db91b1abf472864cf5ef70e182939ccc36ac7a /classes
parent8971f1eec1d603187185b3c85cb09ad6da4a69ed (diff)
downloadmeta-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>
Diffstat (limited to 'classes')
-rw-r--r--classes/clang.bbclass3
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"
9AR_toolchain-clang = "${HOST_PREFIX}llvm-ar" 9AR_toolchain-clang = "${HOST_PREFIX}llvm-ar"
10NM_toolchain-clang = "${HOST_PREFIX}llvm-nm" 10NM_toolchain-clang = "${HOST_PREFIX}llvm-nm"
11 11
12LTO_toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'thin-lto', '-flto=thin', '-flto ', d)}" 12LTO_toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'thin-lto', '-flto=thin', '-flto -fuse-ld=lld', d)}"
13PACKAGE_DEBUG_SPLIT_STYLE_toolchain-clang = "debug-without-src"
13 14
14export CLANG_TIDY_toolchain-clang = "${HOST_PREFIX}clang-tidy" 15export CLANG_TIDY_toolchain-clang = "${HOST_PREFIX}clang-tidy"
15 16