From 33b5ec3d4de28a1e21a96de7b69e10da713c2b07 Mon Sep 17 00:00:00 2001 From: Mark Simulacrum Date: Sun, 24 Sep 2017 08:50:27 -0600 Subject: [PATCH] Allow rustdoc to get compiled with debuginfo --- src/bootstrap/tool.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index db794f6d6c72c..e07ffea2a2ee2 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -304,6 +304,11 @@ impl Step for Rustdoc { target, "build", "src/tools/rustdoc"); + + // Most tools don't get debuginfo, but rustdoc should. + cargo.env("RUSTC_DEBUGINFO", builder.config.rust_debuginfo.to_string()) + .env("RUSTC_DEBUGINFO_LINES", builder.config.rust_debuginfo_lines.to_string()); + build.run(&mut cargo); // Cargo adds a number of paths to the dylib search path on windows, which results in // the wrong rustdoc being executed. To avoid the conflicting rustdocs, we name the "tool"