summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/clang/lld_git.bb
blob: 02006e0edc91491ac1c461396f859e5f4e7abf8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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"