Lines 106-111
pkg_setup() {
Link Here
|
106 |
einfo |
106 |
einfo |
107 |
ewarn "You will do a double build for profile guided optimization." |
107 |
ewarn "You will do a double build for profile guided optimization." |
108 |
ewarn "This will result in your build taking at least twice as long as before." |
108 |
ewarn "This will result in your build taking at least twice as long as before." |
|
|
109 |
|
110 |
addpredict /root |
111 |
addpredict /etc/gconf |
112 |
# Firefox tries to dri stuff when it's run, see bug 380283 |
113 |
shopt -s nullglob |
114 |
local cards=$(echo -n /dev/{dri,ati}/card* /dev/nvidiactl* | sed 's/ /:/g') |
115 |
shopt -u nullglob |
116 |
test -n "${cards}" && addpredict "${cards}" |
109 |
fi |
117 |
fi |
110 |
|
118 |
|
111 |
# Ensure we have enough disk space to compile |
119 |
# Ensure we have enough disk space to compile |
Lines 216-229
src_configure() {
Link Here
|
216 |
|
224 |
|
217 |
src_compile() { |
225 |
src_compile() { |
218 |
if use pgo; then |
226 |
if use pgo; then |
219 |
addpredict /root |
|
|
220 |
addpredict /etc/gconf |
221 |
# Firefox tries to dri stuff when it's run, see bug 380283 |
222 |
shopt -s nullglob |
223 |
local cards=$(echo -n /dev/{dri,ati}/card* /dev/nvidiactl* | sed 's/ /:/g') |
224 |
shopt -u nullglob |
225 |
test -n "${cards}" && addpredict "${cards}" |
226 |
|
227 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
227 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
228 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
228 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
229 |
Xemake -f client.mk profiledbuild || die "Xemake failed" |
229 |
Xemake -f client.mk profiledbuild || die "Xemake failed" |