diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-11-07 10:47:20 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-11-13 09:40:54 -0800 |
commit | 54e34a9d35c497e220ea8aef0a09cd531d84def7 (patch) | |
tree | 5a3c052d481d6f0dcddd7b66360535c90b2a3a6e /classes/clang.bbclass | |
parent | a2c52be71980d7d4eaa66b0ae7d7af320d4746a4 (diff) | |
download | meta-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.bbclass | 2 |
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" | |||
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)}" | ||
13 | |||
12 | export CLANG_TIDY_toolchain-clang = "${HOST_PREFIX}clang-tidy" | 14 | export CLANG_TIDY_toolchain-clang = "${HOST_PREFIX}clang-tidy" |
13 | 15 | ||
14 | COMPILER_RT ??= "${@bb.utils.contains("RUNTIME", "llvm", "-rtlib=compiler-rt ${UNWINDLIB}", "", d)}" | 16 | COMPILER_RT ??= "${@bb.utils.contains("RUNTIME", "llvm", "-rtlib=compiler-rt ${UNWINDLIB}", "", d)}" |