From b77d1e5ce3a34803ebeba9b83655c20eebfed12c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 11 Nov 2020 23:03:16 -0800 Subject: 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 --- classes/clang.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'classes/clang.bbclass') 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" AR_toolchain-clang = "${HOST_PREFIX}llvm-ar" NM_toolchain-clang = "${HOST_PREFIX}llvm-nm" -LTO_toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'thin-lto', '-flto=thin', '-flto ', d)}" +LTO_toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'thin-lto', '-flto=thin', '-flto -fuse-ld=lld', d)}" +PACKAGE_DEBUG_SPLIT_STYLE_toolchain-clang = "debug-without-src" export CLANG_TIDY_toolchain-clang = "${HOST_PREFIX}clang-tidy" -- cgit v1.2.3-54-g00ecf