summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authortrav90 <travawine@palemoon.org>2022-04-15 08:30:05 -0500
committertrav90 <travawine@palemoon.org>2022-04-15 08:30:05 -0500
commitd430c6398bf6bd1122f401aec7937a2ad0df99a5 (patch)
treed95ca61959104562efc0012c93873f1b92e276a7 /build
parent39ba93e1d72e3e88633a13a31abbaa1035fe7ee5 (diff)
downloaduxp-d430c6398bf6bd1122f401aec7937a2ad0df99a5.tar.gz
Issue #1818 - Part 1: remove a number of old GCC hacks.
Diffstat (limited to 'build')
-rw-r--r--build/autoconf/compiler-opts.m45
-rwxr-xr-xbuild/unix/build-gcc/build-gcc.sh2
2 files changed, 4 insertions, 3 deletions
diff --git a/build/autoconf/compiler-opts.m4 b/build/autoconf/compiler-opts.m4
index 077a3e6f19..99990332f9 100644
--- a/build/autoconf/compiler-opts.m4
+++ b/build/autoconf/compiler-opts.m4
@@ -16,7 +16,7 @@ dnl set DEVELOPER_OPTIONS early; MOZ_DEFAULT_COMPILER is usually the first non-s
DEVELOPER_OPTIONS=,
DEVELOPER_OPTIONS=1)
-dnl Default to MSVC for win32 and gcc-4.2 for darwin
+dnl Default to MSVC for win32
dnl ==============================================================
if test -z "$CROSS_COMPILE"; then
case "$target" in
@@ -186,7 +186,8 @@ if test "$GNU_CC"; then
if test -z "$CLANG_CC"; then
case "$CC_VERSION" in
- 4.* | 5.*)
+ 4.* | 5.* | 6.*)
+ AC_MSG_ERROR([Unsupported GCC version.])
;;
*)
# Lifetime Dead Store Elimination level 2 (default in GCC6+) breaks Gecko.
diff --git a/build/unix/build-gcc/build-gcc.sh b/build/unix/build-gcc/build-gcc.sh
index df3bc5dfd3..2c4d7b323d 100755
--- a/build/unix/build-gcc/build-gcc.sh
+++ b/build/unix/build-gcc/build-gcc.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-gcc_version=4.8.5
+gcc_version=7.1.0
binutils_version=2.25.1
this_path=$(readlink -f $(dirname $0))
make_flags='-j12'