From 3965773ae7743e051070b4eed3c6e02e9df3b25c Mon Sep 17 00:00:00 2001 From: Gus Wynn Date: Sun, 4 Apr 2021 14:07:56 -0700 Subject: use jemallocator in rustc/rustdoc --- src/bootstrap/tool.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/bootstrap') diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index bfb846f3b56..c2b8bd71e00 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -519,6 +519,11 @@ impl Step for Rustdoc { // they'll be linked to those libraries). As such, don't explicitly `ensure` any additional // libraries here. The intuition here is that If we've built a compiler, we should be able // to build rustdoc. + // + let mut features = Vec::new(); + if builder.config.jemalloc { + features.push("jemalloc".to_string()); + } let cargo = prepare_tool_cargo( builder, @@ -528,7 +533,7 @@ impl Step for Rustdoc { "build", "src/tools/rustdoc", SourceType::InTree, - &[], + features.as_slice(), ); builder.info(&format!( -- cgit 1.4.1-3-g733a5