blob: 387c54598cb8cb949f892c8df11c3eb0d14796d2 (
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
#
# 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
CFLAGS+=" -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -ftree-vectorize"
CXXFLAGS+=" -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -ftree-vectorize"
fi
}
|