We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rustc
1 parent 68b6f92 commit 1e87d00Copy full SHA for 1e87d00
src/tools/run-make-support/src/external_deps/rustc.rs
@@ -338,6 +338,18 @@ impl Rustc {
338
self
339
}
340
341
+ /// Specify `-C debuginfo=...`.
342
+ pub fn debuginfo(&mut self, level: &str) -> &mut Self {
343
+ self.cmd.arg(format!("-Cdebuginfo={level}"));
344
+ self
345
+ }
346
+
347
+ /// Specify `-C split-debuginfo={packed,unpacked,off}`.
348
+ pub fn split_debuginfo(&mut self, split_kind: &str) -> &mut Self {
349
+ self.cmd.arg(format!("-Csplit-debuginfo={split_kind}"));
350
351
352
353
/// Pass the `--verbose` flag.
354
pub fn verbose(&mut self) -> &mut Self {
355
self.cmd.arg("--verbose");
0 commit comments