mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
clang: Default to use lld if ld-is-lld is in DISTRO_FEATURES
This ensures that default system linker is used correctly based upon distro features, current default remain same i.e. uses BFD linker (From OE-Core rev: 33e7c85e92ddbc35989e7afcaf5fe4c14efdefab) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -54,6 +54,7 @@ def get_clang_target_arch(bb, d):
|
||||
return get_clang_arch(bb, d, 'TARGET_ARCH')
|
||||
|
||||
PACKAGECONFIG_CLANG_COMMON = "build-id eh libedit rtti shared-libs libclang-python \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', 'lld', '', d)} \
|
||||
${@bb.utils.contains('TC_CXX_RUNTIME', 'llvm', 'compiler-rt libcplusplus libomp unwindlib', '', d)} \
|
||||
"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user