blob: 7c446830bd058fdb27fd2577797a97c86b40b9c8 (
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
|
#!/usr/bin/bash
#
# aocc.sh - Compile with the fast aocc compiler from amd
#
[[ -n "$LIBMAKEPKG_BUILDENV_AOCC_SH" ]] && return
LIBMAKEPKG_BUILDENV_AOCC_SH=1
LIBRARY=${LIBRARY:-'/usr/share/makepkg'}
source "$LIBRARY/util/option.sh"
build_options+=('aocc')
buildenv_functions+=('buildenv_aocc')
buildenv_aocc() {
if
check_buildoption "aocc" "y"; then
source /opt/aocc/setenv_AOCC.sh
export CC=clang
export CXX=clang++
export LD=lld
fi
}
|