Files
poky/meta/recipes-devtools/clang/lld_git.bb
Ross Burton 844e2ebbfc clang: split lld into a separate lld recipe
The lld linker is a standalone project under the LLVM umbrella that just
depends on libLLVM and nothing else, such as clang.

To reduce the build time of clang if lld is not being used, split it out
into a separate recipe.

To ensure that lld is present if needed, the clang-cross recipe will
depend on lld-native if ld-is-lld is enable.

(From OE-Core rev: 5212b69f892af8c9b080fee2c21533a2bbdd2755)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00

27 lines
888 B
BlitzBasic

SUMMARY = "LLD - the LLVM Linker"
DESCRIPTION = "LLD is a linker from the LLVM project that is a drop-in replacement for system linkers and runs much faster than them."
HOMEPAGE = "https://lld.llvm.org"
SECTION = "devel"
require common-clang.inc
require common-source.inc
LIC_FILES_CHKSUM = "file://lld/LICENSE.TXT;md5=ae7dc7c027b1fa89b5b013d391d3ee2b"
inherit cmake pkgconfig
DEPENDS = "llvm-tblgen-native llvm"
OECMAKE_SOURCEPATH = "${S}/lld"
# Explicitly disable RPATHs as otherwise they're stipped out of the binaries,
# and are then non-reproducible.
#
# Explicitly enable symlinks as the lld build doesn't call into the llvm setup
# and turn that on.
EXTRA_OECMAKE = "-DCMAKE_SKIP_BUILD_RPATH=ON \
-DLLVM_INCLUDE_TESTS=OFF -DLLVM_USE_SYMLINKS=ON \
-DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen"
BBCLASSEXTEND = "native nativesdk"