diff options
| author | Gus Wynn <guswynn@gmail.com> | 2021-04-04 14:07:56 -0700 |
|---|---|---|
| committer | Gus Wynn <guswynn@gmail.com> | 2021-04-04 14:10:26 -0700 |
| commit | 3965773ae7743e051070b4eed3c6e02e9df3b25c (patch) | |
| tree | cab824310bbf8fa5fbfb88c65ff7cab53be62a4d /src/bootstrap | |
| parent | 8ad6a443cfee83e1f7d29c9ec0de26143c54a617 (diff) | |
| download | rust-3965773ae7743e051070b4eed3c6e02e9df3b25c.tar.gz rust-3965773ae7743e051070b4eed3c6e02e9df3b25c.zip | |
use jemallocator in rustc/rustdoc
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/tool.rs | 7 |
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!( |
