Skip to content

Commit 3730fe3

Browse files
committed
Ignore paths in temporary dir in reproducible build test
1 parent fefc69a commit 3730fe3

File tree

1 file changed

+6
-0
lines changed
  • src/test/run-make-fulldeps/reproducible-build

1 file changed

+6
-0
lines changed

src/test/run-make-fulldeps/reproducible-build/linker.rs

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ fn main() {
2525
let mut contents = Vec::new();
2626
File::open(path).unwrap().read_to_end(&mut contents).unwrap();
2727

28+
// This file is produced during linking in a temporary directory.
29+
let arg = if arg.ends_with("/symbols.o") {
30+
"symbols.o"
31+
} else {
32+
&*arg
33+
};
2834
out.push_str(&format!("{}: {}\n", arg, hash(&contents)));
2935
}
3036

0 commit comments

Comments
 (0)