Allow rustdoc to get compiled with debuginfo
This commit is contained in:
parent
14039a42ac
commit
33b5ec3d4d
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user