Bug 1481097 - mfbt: Assert we're compiling with gcc 6.1 or later. r=glandium
authorChris Peterson <cpeterson@mozilla.com>
Sat, 21 Jul 2018 23:45:41 -0700
changeset 430516 20bf59c86755a04bd756728d9169589d585ac393
parent 430515 04a334d50b81200361010892139205fbf9fd2e1b
child 430517 8fae317831c1181b33603699455c71dfe58e51f6
push id34406
push userncsoregi@mozilla.com
push dateWed, 08 Aug 2018 09:58:58 +0000
treeherdermozilla-central@17116905bc07 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1481097, 1444274
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1481097 - mfbt: Assert we're compiling with gcc 6.1 or later. r=glandium Firefox currently requires gcc 6.1 or later (as of bug 1444274). MozReview-Commit-ID: CaJwpUgntxn
mfbt/Compiler.h
--- a/mfbt/Compiler.h
+++ b/mfbt/Compiler.h
@@ -21,18 +21,18 @@
     * for gcc 4.7.1 or later, check `#if MOZ_GCC_VERSION_AT_LEAST(4, 7, 1)`.
     */
 #  define MOZ_GCC_VERSION_AT_LEAST(major, minor, patchlevel)          \
      ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) \
       >= ((major) * 10000 + (minor) * 100 + (patchlevel)))
 #  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, 9, 0)
-#    error "mfbt (and Gecko) require at least gcc 4.9 to build."
+#  if !MOZ_GCC_VERSION_AT_LEAST(6, 1, 0)
+#    error "mfbt (and Gecko) require at least gcc 6.1 to build."
 #  endif
 
 #elif defined(_MSC_VER)
 
 #  undef MOZ_IS_MSVC
 #  define MOZ_IS_MSVC 1
 
 #endif