summarylogtreecommitdiffstats
path: root/04.graphite.patch
blob: 8742902737c2b38cbfa782a14cdeb981fa6da02f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- makepkg-optimize
+++ makepkg-optimize
@@ -891,6 +891,11 @@
 		fi
 	fi
 
+	# Utilize graphite if it is requested (check buildenv and PKGBUILD opts)
+	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
 
 	run_function_safe "build"
 }