about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorGus Wynn <guswynn@gmail.com>2021-04-04 14:07:56 -0700
committerGus Wynn <guswynn@gmail.com>2021-04-04 14:10:26 -0700
commit3965773ae7743e051070b4eed3c6e02e9df3b25c (patch)
treecab824310bbf8fa5fbfb88c65ff7cab53be62a4d /src/bootstrap
parent8ad6a443cfee83e1f7d29c9ec0de26143c54a617 (diff)
downloadrust-3965773ae7743e051070b4eed3c6e02e9df3b25c.tar.gz
rust-3965773ae7743e051070b4eed3c6e02e9df3b25c.zip
use jemallocator in rustc/rustdoc
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/tool.rs7
1 files changed, 6 insertions, 1 deletions
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!(