aboutsummarylogtreecommitdiffstats
path: root/bolt.sh.in
blob: 9adbf1fd114afd5e0d94fcf63b5e54467929a9a4 (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
#!/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="$HOME/.toolchain/llvm/bin:$PATH"
         export CC=clang
		 export CXX=clang++
 		 export CC_LD=lld
  		 export CXX_LD=lld
    fi
}