Skip to content

Commit a999812

Browse files
authored
use push_cc_arg for options add (#528)
1 parent 5e6bb36 commit a999812

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,13 +1425,13 @@ impl Build {
14251425
// This is an undocumented flag from MSVC but helps with making
14261426
// builds more reproducible by avoiding putting timestamps into
14271427
// files.
1428-
cmd.args.push("-Brepro".into());
1428+
cmd.push_cc_arg("-Brepro".into());
14291429

14301430
if clang_cl {
14311431
if target.contains("x86_64") {
1432-
cmd.args.push("-m64".into());
1432+
cmd.push_cc_arg("-m64".into());
14331433
} else if target.contains("86") {
1434-
cmd.args.push("-m32".into());
1434+
cmd.push_cc_arg("-m32".into());
14351435
cmd.push_cc_arg("-arch:IA32".into());
14361436
} else {
14371437
cmd.push_cc_arg(format!("--target={}", target).into());

0 commit comments

Comments
 (0)