Skip to content

Commit e53ab91

Browse files
committed
Auto merge of #44812 - Mark-Simulacrum:rustdoc-debug, r=alexcrichton
Allow rustdoc to get compiled with debuginfo Fixes #44810 cc @QuietMisdreavus r? @alexcrichton
2 parents f71b37b + 33b5ec3 commit e53ab91

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/tool.rs

+5
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,11 @@ impl Step for Rustdoc {
304304
target,
305305
"build",
306306
"src/tools/rustdoc");
307+
308+
// Most tools don't get debuginfo, but rustdoc should.
309+
cargo.env("RUSTC_DEBUGINFO", builder.config.rust_debuginfo.to_string())
310+
.env("RUSTC_DEBUGINFO_LINES", builder.config.rust_debuginfo_lines.to_string());
311+
307312
build.run(&mut cargo);
308313
// Cargo adds a number of paths to the dylib search path on windows, which results in
309314
// the wrong rustdoc being executed. To avoid the conflicting rustdocs, we name the "tool"

0 commit comments

Comments
 (0)