Skip to content

Commit

Permalink
Ignore paths in temporary dir in reproducible build test
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Apr 5, 2022
1 parent fefc69a commit 3730fe3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/run-make-fulldeps/reproducible-build/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ fn main() {
let mut contents = Vec::new();
File::open(path).unwrap().read_to_end(&mut contents).unwrap();

// This file is produced during linking in a temporary directory.
let arg = if arg.ends_with("/symbols.o") {
"symbols.o"
} else {
&*arg
};
out.push_str(&format!("{}: {}\n", arg, hash(&contents)));
}

Expand Down

0 comments on commit 3730fe3

Please sign in to comment.