bootstrap: Avoid fetching jemalloc if it's disabled

Fix #45300
This commit is contained in:
Tatsuyuki Ishi 2017-10-17 15:01:49 +09:00
parent 90691c8c1f
commit cbe41168e0

View File

@ -648,7 +648,8 @@ class RustBuild(object):
if not ((module.endswith("llvm") and
self.get_toml('llvm-config')) or
(module.endswith("jemalloc") and
self.get_toml('jemalloc')))]
(self.get_toml('use-jemalloc') == "false" or
self.get_toml('jemalloc'))))]
run(["git", "submodule", "update",
"--init", "--recursive"] + submodules,
cwd=self.rust_root, verbose=self.verbose)