File tree Expand file tree Collapse file tree 3 files changed +152
-12
lines changed
doc/unstable-book/src/compiler-flags
tools/run-make-support/src/external_deps
tests/run-make/split-debuginfo Expand file tree Collapse file tree 3 files changed +152
-12
lines changed Original file line number Diff line number Diff line change 1+ # ` split-dwarf-out-dir `
2+
3+ On systems which use DWARF debug info this flag causes ` .dwo ` files produced
4+ by ` -C split-debuginfo ` to be written to the specified directory rather than
5+ placed next to the object files. This is mostly useful if you have a build
6+ system which needs to control where to find compile outputs without running the
7+ compiler and have to put your ` .dwo ` files in a separate directory.
Original file line number Diff line number Diff line change @@ -366,6 +366,13 @@ impl Rustc {
366366 self
367367 }
368368
369+ pub fn split_dwarf_out_dir ( & mut self , out_dir : Option < & str > ) -> & mut Self {
370+ if let Some ( out_dir) = out_dir {
371+ self . cmd . arg ( format ! ( "-Zsplit-dwarf-out-dir={out_dir}" ) ) ;
372+ }
373+ self
374+ }
375+
369376 /// Pass the `--verbose` flag.
370377 pub fn verbose ( & mut self ) -> & mut Self {
371378 self . cmd . arg ( "--verbose" ) ;
You can’t perform that action at this time.
0 commit comments