Bug 1420350 Enable jemalloc on MinGW r?glandium draft
authorTom Ritter <tom@mozilla.com>
Wed, 07 Mar 2018 10:49:28 -0600
changeset 795321 cef227307935e564ab2caa86084d3b414a345625
parent 795320 3dab8c7de4a14c6eddca72525fad69e971826a89
push id109929
push userbmo:tom@mozilla.com
push dateTue, 15 May 2018 15:23:28 +0000
reviewersglandium
bugs1420350
milestone60.0
Bug 1420350 Enable jemalloc on MinGW r?glandium 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)