aboutsummarylogtreecommitdiffstats
path: root/lld.sh.in
blob: 77ecd8823b1144230ab2663a3c3253b93cde4cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/bash
#
#   lld.sh - Compile with the lld linker
#

[[ -n "$LIBMAKEPKG_BUILDENV_LLD_SH" ]] && return
LIBMAKEPKG_BUILDENV_LLD_SH=1

LIBRARY=${LIBRARY:-'/usr/share/makepkg'}

source "$LIBRARY/util/option.sh"

build_options+=('lld')
buildenv_functions+=('buildenv_lld')

buildenv_lld() {
    if
    check_buildoption "lld" "y"; then
	        LDFLAGS+=",-fuse-ld=lld"
    fi
}