Browse Source

Pass `/Brepro` on MSVC by default (#437)

Closes #373
gh-actions
Alex Crichton 5 years ago
committed by GitHub
parent
commit
8589c8bb25
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/lib.rs

5
src/lib.rs

@ -1231,6 +1231,11 @@ impl Build {
cmd.args.push(format!("--target={}", target).into()); cmd.args.push(format!("--target={}", target).into());
} }
ToolFamily::Msvc { clang_cl } => { ToolFamily::Msvc { clang_cl } => {
// This is an undocumented flag from MSVC but helps with making
// builds more reproducible by avoiding putting timestamps into
// files.
cmd.args.push("-Brepro".into());
if clang_cl { if clang_cl {
if target.contains("x86_64") { if target.contains("x86_64") {
cmd.args.push("-m64".into()); cmd.args.push("-m64".into());

Loading…
Cancel
Save