Require at least GCC 4.9 to build

This commit is contained in:
trav90
2018-02-04 12:12:38 -06:00
committed by Roy Tam
parent 0b2d3c5cfa
commit 1eecf39f2b
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -686,9 +686,9 @@ def compiler(language, host_or_target, c_compiler=None, other_compiler=None,
# Check the compiler version here instead of in `compiler_version` so
# that the `checking` message doesn't pretend the compiler can be used
# to then bail out one line later.
if info.type == 'gcc' and info.version < '4.8.0':
if info.type == 'gcc' and info.version < '4.9.0':
raise FatalCheckError(
'Only GCC 4.8 or newer is supported (found version %s).'
'Only GCC 4.9 or newer is supported (found version %s).'
% info.version)
# If you want to bump the version check here search for
+2 -2
View File
@@ -26,8 +26,8 @@
# define MOZ_GCC_VERSION_AT_MOST(major, minor, patchlevel) \
((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) \
<= ((major) * 10000 + (minor) * 100 + (patchlevel)))
# if !MOZ_GCC_VERSION_AT_LEAST(4, 8, 0)
# error "mfbt (and Gecko) require at least gcc 4.8 to build."
# if !MOZ_GCC_VERSION_AT_LEAST(4, 9, 0)
# error "mfbt (and Goanna) require at least gcc 4.9 to build."
# endif
#elif defined(_MSC_VER)
@@ -313,7 +313,7 @@ class LinuxToolchainTest(BaseToolchainTest):
'/usr/bin/clang-3.3': CLANG_3_3 + CLANG_PLATFORM_X86_64_LINUX,
'/usr/bin/clang++-3.3': CLANGXX_3_3 + CLANG_PLATFORM_X86_64_LINUX,
}
GCC_4_7_RESULT = ('Only GCC 4.8 or newer is supported '
GCC_4_7_RESULT = ('Only GCC 4.9 or newer is supported '
'(found version 4.7.3).')
GXX_4_7_RESULT = GCC_4_7_RESULT
GCC_4_9_RESULT = CompilerResult(