Add --dep-info to write Makefile-compatible dependency info.

When --dep-info is given, rustc will write out a `$input_base.d` file in the
output directory that contains Makefile compatible dependency information for
use with tools like make and ninja.
This commit is contained in:
Jack Moffitt
2013-11-27 20:06:35 -07:00
parent 5bd4d2ea7a
commit 9365375c7f
5 changed files with 47 additions and 8 deletions

View File

@@ -260,6 +260,10 @@ impl FileMap {
};
self.multibyte_chars.push(mbc);
}
pub fn is_real_file(&self) -> bool {
!(self.name.starts_with("<") && self.name.ends_with(">"))
}
}
pub struct CodeMap {