We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68740b4 commit 9319252Copy full SHA for 9319252
src/librustc_driver/driver.rs
@@ -797,7 +797,9 @@ fn write_out_deps(sess: &Session,
797
// Build a list of files used to compile the output and
798
// write Makefile-compatible dependency rules
799
let files: Vec<String> = sess.codemap().files.borrow()
800
- .iter().filter(|fmap| fmap.is_real_file())
+ .iter()
801
+ .filter(|fmap| fmap.is_real_file())
802
+ .filter(|fmap| !fmap.is_imported())
803
.map(|fmap| escape_dep_filename(&fmap.name))
804
.collect();
805
let mut file = try!(fs::File::create(&deps_filename));
0 commit comments