Skip to content

Commit 8589c8b

Browse files
authored
Pass /Brepro on MSVC by default (#437)
Closes #373
1 parent 555e773 commit 8589c8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,11 @@ impl Build {
12311231
cmd.args.push(format!("--target={}", target).into());
12321232
}
12331233
ToolFamily::Msvc { clang_cl } => {
1234+
// This is an undocumented flag from MSVC but helps with making
1235+
// builds more reproducible by avoiding putting timestamps into
1236+
// files.
1237+
cmd.args.push("-Brepro".into());
1238+
12341239
if clang_cl {
12351240
if target.contains("x86_64") {
12361241
cmd.args.push("-m64".into());

0 commit comments

Comments
 (0)