Bug 1077549 - Only support gcc 4.6+. r=glandium

This commit is contained in:
Trevor Saunders 2015-01-08 20:21:37 -05:00
parent cd246ac793
commit 4a203db537
2 changed files with 2 additions and 6 deletions

View File

@ -59,12 +59,8 @@ MOZ_B2G=1
if test "$OS_TARGET" = "Android"; then
MOZ_NUWA_PROCESS=1
MOZ_B2G_LOADER=1
# Warnings-as-errors cannot be enabled on gcc <= 4.4 due to bug 915555.
if test "$GCC_MAJOR_VERSION" -gt 4 -o \
"$GCC_MAJOR_VERSION" -eq 4 -a "$GCC_MINOR_VERSION" -gt 4; then
MOZ_ENABLE_WARNINGS_AS_ERRORS=1
fi
fi
MOZ_JSDOWNLOADS=1

View File

@ -101,9 +101,9 @@ AC_SUBST(CLANG_CXX)
AC_SUBST(CLANG_CL)
if test -n "$GNU_CC" -a -z "$CLANG_CC" ; then
if test "$GCC_MAJOR_VERSION" -eq 4 -a "$GCC_MINOR_VERSION" -lt 4 ||
if test "$GCC_MAJOR_VERSION" -eq 4 -a "$GCC_MINOR_VERSION" -lt 6 ||
test "$GCC_MAJOR_VERSION" -lt 4; then
AC_MSG_ERROR([Only GCC 4.4 or newer supported])
AC_MSG_ERROR([Only GCC 4.6 or newer supported])
fi
fi
])