Skip to content

Commit

Permalink
use push_cc_arg for options add (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
slyshykO authored Jul 8, 2020
1 parent 5e6bb36 commit a999812
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1425,13 +1425,13 @@ impl Build {
// 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());
cmd.push_cc_arg("-Brepro".into());

if clang_cl {
if target.contains("x86_64") {
cmd.args.push("-m64".into());
cmd.push_cc_arg("-m64".into());
} else if target.contains("86") {
cmd.args.push("-m32".into());
cmd.push_cc_arg("-m32".into());
cmd.push_cc_arg("-arch:IA32".into());
} else {
cmd.push_cc_arg(format!("--target={}", target).into());
Expand Down

0 comments on commit a999812

Please sign in to comment.