Bug 1420350 - Enable jemalloc on MinGW. r=glandium, a=jcristau
authorTom Ritter <tom@mozilla.com>
Wed, 07 Mar 2018 10:49:28 -0600
changeset 802217 f14e73288315189505508c50698133add2d255e9
parent 802216 efd762c4f413ba6df32feb49d0334a3853b20e75
child 802218 562dc783be1a7a2242ef9e860e4447154e88312e
push id111850
push userbmo:tom@mozilla.com
push dateThu, 31 May 2018 16:41:37 +0000
reviewersglandium, jcristau
bugs1420350
milestone60.0.2
Bug 1420350 - Enable jemalloc on MinGW. r=glandium, a=jcristau MozReview-Commit-ID: 6YUeFAJocHj
build/moz.configure/memory.configure
--- a/build/moz.configure/memory.configure
+++ b/build/moz.configure/memory.configure
@@ -9,25 +9,22 @@
 def moz_jemalloc4(value):
     die('MOZ_JEMALLOC4 is deprecated')
 
 
 option('--enable-jemalloc', env='MOZ_MEMORY',
        help='Replace memory allocator with jemalloc')
 
 
-@depends('--enable-jemalloc', target, c_compiler)
-def jemalloc(value, target, c_compiler):
+@depends('--enable-jemalloc', target)
+def jemalloc(value, target):
     if value.origin != 'default':
         return bool(value) or None
 
-    if target.kernel in ('Darwin', 'Linux'):
-        return True
-
-    if target.kernel == 'WINNT' and c_compiler.type in ('msvc', 'clang-cl'):
+    if target.kernel in ('Darwin', 'Linux', 'WINNT'):
         return True
 
 
 set_config('MOZ_MEMORY', jemalloc)
 set_define('MOZ_MEMORY', jemalloc)
 add_old_configure_assignment('MOZ_MEMORY', jemalloc)