diff options
author | Moonchild <moonchild@palemoon.org> | 2022-04-16 16:23:23 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-16 16:23:23 +0000 |
commit | 08842d77aef11d7d9690feba8e8707315a511f88 (patch) | |
tree | 8dc33a4d3fd940f6f0c042de1db4c5d284e0e877 /build | |
parent | 1191c9e371ba878ccd53f9a8ca44b6a3f348a439 (diff) | |
parent | f5c363c01db0ece0ce58e47ca2e63f677f07ff1c (diff) | |
download | uxp-08842d77aef11d7d9690feba8e8707315a511f88.tar.gz |
Merge pull request 'Issue #1818 Cleanup some old GCC hacks' (#1865) from trav90/UXP-contrib:compiler-hacks-cleanup into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/1865
Diffstat (limited to 'build')
-rw-r--r-- | build/autoconf/compiler-opts.m4 | 9 | ||||
-rwxr-xr-x | build/unix/build-gcc/build-gcc.sh | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/build/autoconf/compiler-opts.m4 b/build/autoconf/compiler-opts.m4 index 077a3e6f19..2bf303eb0c 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 @@ -176,8 +176,8 @@ if test "$GNU_CC"; then CFLAGS="$CFLAGS -ffunction-sections -fdata-sections" CXXFLAGS="$CXXFLAGS -ffunction-sections -fdata-sections" fi - CFLAGS="$CFLAGS -fno-math-errno" - CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno" + CFLAGS="$CFLAGS -fno-math-errno -pipe" + CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno -pipe" if test "$CPU_ARCH" = "x86" -o "$CPU_ARCH" = "x86_64"; then CFLAGS="$CFLAGS -msse2 -mfpmath=sse" @@ -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' |