Skip to content

Commit cbe4116

Browse files
committed
bootstrap: Avoid fetching jemalloc if it's disabled
Fix #45300
1 parent 90691c8 commit cbe4116

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/bootstrap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,8 @@ def update_submodules(self):
648648
if not ((module.endswith("llvm") and
649649
self.get_toml('llvm-config')) or
650650
(module.endswith("jemalloc") and
651-
self.get_toml('jemalloc')))]
651+
(self.get_toml('use-jemalloc') == "false" or
652+
self.get_toml('jemalloc'))))]
652653
run(["git", "submodule", "update",
653654
"--init", "--recursive"] + submodules,
654655
cwd=self.rust_root, verbose=self.verbose)

0 commit comments

Comments
 (0)