Auto merge of #44812 - Mark-Simulacrum:rustdoc-debug, r=alexcrichton

Allow rustdoc to get compiled with debuginfo

Fixes #44810

cc @QuietMisdreavus
r? @alexcrichton
This commit is contained in:
bors 2017-09-27 04:57:34 +00:00
commit e53ab9104a
1 changed files with 5 additions and 0 deletions

View File

@ -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"