summarylogtreecommitdiffstats
path: root/graphite.sh.in
diff options
context:
space:
mode:
authorQue Quotion2019-07-10 19:36:34 +0900
committerQue Quotion2019-07-10 19:36:34 +0900
commit0d3062da404b6a2e6bc94328e79fc54a8f5329cf (patch)
tree83df56907795abd9aa1a14b66946100f269e1e2c /graphite.sh.in
parenta6fd22e346fc502bb625139d55704e6741facecf (diff)
downloadaur-0d3062da404b6a2e6bc94328e79fc54a8f5329cf.tar.gz
United Maintenance Plan: restructure all libmakepkg scripts (replace tabs with whitespace, reduce complexity, use safer methods to set flags)
Diffstat (limited to 'graphite.sh.in')
-rw-r--r--graphite.sh.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/graphite.sh.in b/graphite.sh.in
index 387c54598cb8..ba0d6bdc0968 100644
--- a/graphite.sh.in
+++ b/graphite.sh.in
@@ -14,8 +14,9 @@ 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
+ if check_buildoption "graphite" "y"; then
+ graphiteflags=" -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -ftree-vectorize"
+ CFLAGS+="$graphiteflags"
+ CXXFLAGS+="$graphiteflags"
+ fi
}