diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-12-07 00:05:43 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-12-07 11:07:49 -0800 |
commit | 7cac1e3d896c71ae4ae337239883d92e1ec636d7 (patch) | |
tree | 22895b6add5d58c1964a69711589a90591932ae9 | |
parent | 4c17cbfc99e11db9498362f1a74669ea4db2f690 (diff) | |
download | meta-clang-7cac1e3d896c71ae4ae337239883d92e1ec636d7.tar.gz |
clang: Enable lto when asked for via DISTRO_FEATURES
add 'thin-lto' or 'full-lto' to DISTRO_FEATURES to enable it
instead of making it unconditional
Should fix Issue #236
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-devtools/clang/clang_git.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb index f33b78a..fb4020d 100644 --- a/recipes-devtools/clang/clang_git.bb +++ b/recipes-devtools/clang/clang_git.bb | |||
@@ -55,7 +55,7 @@ PACKAGECONFIG ??= "compiler-rt libcplusplus shared-libs lldb-wchar \ | |||
55 | rtti eh libedit \ | 55 | rtti eh libedit \ |
56 | " | 56 | " |
57 | PACKAGECONFIG_class-native = "rtti eh libedit" | 57 | PACKAGECONFIG_class-native = "rtti eh libedit" |
58 | PACKAGECONFIG_class-nativesdk = "rtti eh libedit thin-lto" | 58 | PACKAGECONFIG_class-nativesdk = "rtti eh libedit ${@bb.utils.filter('DISTRO_FEATURES', 'thin-lto full-lto', d)}" |
59 | 59 | ||
60 | PACKAGECONFIG[compiler-rt] = "-DCLANG_DEFAULT_RTLIB=compiler-rt,,libcxx,compiler-rt" | 60 | PACKAGECONFIG[compiler-rt] = "-DCLANG_DEFAULT_RTLIB=compiler-rt,,libcxx,compiler-rt" |
61 | PACKAGECONFIG[libcplusplus] = "-DCLANG_DEFAULT_CXX_STDLIB=libc++,,libcxx" | 61 | PACKAGECONFIG[libcplusplus] = "-DCLANG_DEFAULT_CXX_STDLIB=libc++,,libcxx" |