aboutsummarylogtreecommitdiffstats
path: root/bolt.sh.in
blob: dad8cc1ce68b0c6252e6d222adafc4a467b9ddbf (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
#
#   bolt.sh - Compile with the fast bolt compiler
#

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

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

source "$LIBRARY/util/option.sh"

build_options+=('bolt')
buildenv_functions+=('buildenv_bolt')

buildenv_bolt() {
    if
    check_buildoption "bolt" "y"; then
        export PATH="~/toolchain/llvm-bolt/bin:$PATH"
    fi
}