Bug 1420350 Enable jemalloc on MinGW r?glandium
MozReview-Commit-ID: 6YUeFAJocHj
--- 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)