Lines 158-165
mozconfig_init() {
Link Here
|
158 |
# Set optimization level |
158 |
# Set optimization level |
159 |
if [[ ${ARCH} == hppa ]]; then |
159 |
if [[ ${ARCH} == hppa ]]; then |
160 |
mozconfig_annotate "more than -O0 causes a segfault on hppa" --enable-optimize=-O0 |
160 |
mozconfig_annotate "more than -O0 causes a segfault on hppa" --enable-optimize=-O0 |
161 |
elif [[ ${ARCH} == x86 ]]; then |
161 |
elif [[ ${ARCH} =~ (x86|amd64) ]]; then |
162 |
mozconfig_annotate "less then -O2 causes a segfault on x86" --enable-optimize=-O2 |
162 |
mozconfig_annotate "Work around broken gcc optimization level" --enable-optimize=-O2 |
163 |
elif use custom-optimization || [[ ${ARCH} =~ (alpha|ia64) ]]; then |
163 |
elif use custom-optimization || [[ ${ARCH} =~ (alpha|ia64) ]]; then |
164 |
# Set optimization level based on CFLAGS |
164 |
# Set optimization level based on CFLAGS |
165 |
if is-flag -O0; then |
165 |
if is-flag -O0; then |