blob: 77cf9b4b4796dac6fd1f796c865e4af8d8b9a476 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# -g1 from VoidLinux, reduce size of debug symbols
eval "$(
declare -f prepare | \
sed '
/sed/ a \
sed -i "s/ac_add_options --enable-linker=gold/ac_add_options --enable-linker=bfd/" .mozconfig
$ i export LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
$ i export CFLAGS="${CFLAGS/-g/-g1}"
$ i export CXXFLAGS="${CXXFLAGS/-g/-g1}"
'
)"
#~ # no longer applies (TODO: check where we can set this)
eval "$(
declare -f build | \
sed '
/cd /a sed -i "s/\\(cargo_rustc_flags += -C lto\\)/#\\1/" config/rules.mk
'
)"
# from VoidLinux, avoid excessive debug symbols in rust leading
# to out-of-memory situations
eval "$(
declare -f build | \
sed '
/cd /a sed -i "s/debug_info = '\''2'\''/debug_info = '\''1'\''/" build/moz.configure/toolchain.configure
'
)"
# don't kill build slaves by auto-guessing available CPU cores
eval "$(
declare -f build | \
sed '
2 a export MOZ_MAKE_FLAGS=-j1
'
)"
|