We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f71b37b + 33b5ec3 commit e53ab91Copy full SHA for e53ab91
src/bootstrap/tool.rs
@@ -304,6 +304,11 @@ impl Step for Rustdoc {
304
target,
305
"build",
306
"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
312
build.run(&mut cargo);
313
// Cargo adds a number of paths to the dylib search path on windows, which results in
314
// the wrong rustdoc being executed. To avoid the conflicting rustdocs, we name the "tool"
0 commit comments