]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/tool.rs
Auto merge of #83152 - guswynn:jemallocator_part2, r=Mark-Simulacrum
[rust.git] / src / bootstrap / tool.rs
index f9be35d7c5e0df7619acb4feda3793a239c67f3f..e85f4628fb03a95727e316a67983ae7ba5f6b415 100644 (file)
@@ -532,6 +532,11 @@ fn run(self, builder: &Builder<'_>) -> PathBuf {
         // 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,
@@ -541,7 +546,7 @@ fn run(self, builder: &Builder<'_>) -> PathBuf {
             "build",
             "src/tools/rustdoc",
             SourceType::InTree,
-            &[],
+            features.as_slice(),
         );
 
         builder.info(&format!(