Bug 1481097 - mfbt: Assert we're compiling with gcc 6.1 or later. r?glandium draft
authorChris Peterson <cpeterson@mozilla.com>
Sat, 21 Jul 2018 23:45:41 -0700
changeset 826868 62cb37da55c3812b166205ca7c0de2878a6ccab7
parent 826832 b3e7de2df93d2805434e2533f8c5a3fa1a6a40b9
child 826869 9560dadb96c377db6e8ee136a1f0c3ada0789979
push id118399
push usercpeterson@mozilla.com
push dateSun, 05 Aug 2018 22:49:36 +0000
reviewersglandium
bugs1481097, 1444274
milestone63.0a1
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