blob: ba0d6bdc09680ac20f224a9a6f22df82e35d14fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/bash
#
# graphite.sh - Compile with Graphite polyhedral modeling optimization
#
[[ -n "$LIBMAKEPKG_BUILDENV_GRAPHITE_SH" ]] && return
LIBMAKEPKG_BUILDENV_GRAPHITE_SH=1
LIBRARY=${LIBRARY:-'@libmakepkgdir@'}
source "$LIBRARY/util/option.sh"
build_options+=('graphite')
buildenv_functions+=('buildenv_graphite')
buildenv_graphite() {
if check_buildoption "graphite" "y"; then
graphiteflags=" -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -ftree-vectorize"
CFLAGS+="$graphiteflags"
CXXFLAGS+="$graphiteflags"
fi
}
|