summaryrefslogtreecommitdiffstats
path: root/classes/clang.bbclass
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-11-07 10:47:20 -0800
committerKhem Raj <raj.khem@gmail.com>2020-11-13 09:40:54 -0800
commit54e34a9d35c497e220ea8aef0a09cd531d84def7 (patch)
tree5a3c052d481d6f0dcddd7b66360535c90b2a3a6e /classes/clang.bbclass
parenta2c52be71980d7d4eaa66b0ae7d7af320d4746a4 (diff)
downloadmeta-clang-54e34a9d35c497e220ea8aef0a09cd531d84def7.tar.gz
lto: Override LTO variable from oe-core for thin-lto
If thin-lto is used in DISTRO_FEATURES then enable thin-lto Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'classes/clang.bbclass')
-rw-r--r--classes/clang.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass
index 9f2aaac..40efa95 100644
--- a/classes/clang.bbclass
+++ b/classes/clang.bbclass
@@ -9,6 +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)}"
13
12export CLANG_TIDY_toolchain-clang = "${HOST_PREFIX}clang-tidy" 14export CLANG_TIDY_toolchain-clang = "${HOST_PREFIX}clang-tidy"
13 15
14COMPILER_RT ??= "${@bb.utils.contains("RUNTIME", "llvm", "-rtlib=compiler-rt ${UNWINDLIB}", "", d)}" 16COMPILER_RT ??= "${@bb.utils.contains("RUNTIME", "llvm", "-rtlib=compiler-rt ${UNWINDLIB}", "", d)}"