Bug 1295811 - Only run allocator checks when compile environment needed; r=glandium
authorGregory Szorc <gps@mozilla.com>
Tue, 16 Aug 2016 17:07:00 -0700
changeset 309926 6d227c4f173d3cf8365e1563a1ad7c3c64e93379
parent 309925 4cfaf97a020062fc79227b0c10464f49f98d2166
child 309927 f904a6f393b6dfbd16dd4af439a2a0d5c11cd80c
push id20342
push userkwierso@gmail.com
push dateThu, 18 Aug 2016 23:33:24 +0000
treeherderfx-team@abac53d4d247 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1295811
milestone51.0a1
Bug 1295811 - Only run allocator checks when compile environment needed; r=glandium Skipping them saves 1.5-2.0s from configure during an artifact build on Windows. MozReview-Commit-ID: ArCvrFP9UsD
old-configure.in
--- a/old-configure.in
+++ b/old-configure.in
@@ -2050,20 +2050,21 @@ AC_CACHE_CHECK(for LC_MESSAGES,
                                [int category = LC_MESSAGES;],
                                ac_cv_i18n_lc_messages=yes,
                                ac_cv_i18n_lc_messages=no)])
 if test "$ac_cv_i18n_lc_messages" = yes; then
    AC_DEFINE(HAVE_I18N_LC_MESSAGES)
 fi
 
 AC_HAVE_FUNCS(localeconv)
-fi # ! SKIP_COMPILER_CHECKS
 
 MOZ_CHECK_ALLOCATOR
 
+fi # ! SKIP_COMPILER_CHECKS
+
 TARGET_XPCOM_ABI=
 if test -n "${CPU_ARCH}" -a -n "${TARGET_COMPILER_ABI}"; then
     TARGET_XPCOM_ABI="${CPU_ARCH}-${TARGET_COMPILER_ABI}"
     AC_DEFINE_UNQUOTED(TARGET_XPCOM_ABI, ["${TARGET_XPCOM_ABI}"])
 fi
 
 dnl We can't run TRY_COMPILE tests on Windows, so hard-code some
 dnl features that Windows actually does support.