blob: ae4050e8e7a838f11fa2bc93acdb8a0435824161 (
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
27
28
29
30
31
32
33
34
|
#!/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 CC=~/Documents/llvm/bin/clang
export CXX=~/Documents/llvm/bin/clang++
export CC_LD=~/Documents/llvm/bin/lld
export CXX_LD=~/Documents/llvm/bin/lld
export AR=~/Documents/llvm/bin/llvm-ar
export NM=~/Documents/llvm/bin/llvm-nm
export STRIP=~/Documents/llvm/bin/llvm-strip
export OBJCOPY=~/Documents/llvm/bin/llvm-objcopy
export OBJDUMP=~/Documents/llvm/bin/llvm-objdump
export READELF=~/Documents/llvm/bin/llvm-readelf
export RANLIB=~/Documents/llvm/bin/llvm-ranlib
export HOSTCC=~/Documents/llvm/bin/clang
export HOSTCXX=~/Documents/llvm/bin/clang++
export HOSTAR=~/Documents/llvm/bin/llvm-ar
fi
}
|