From a99981293b792320370c2c59c0367bb693b9ff4b Mon Sep 17 00:00:00 2001 From: Oleksiy Slyshyk Date: Wed, 8 Jul 2020 17:04:15 +0300 Subject: [PATCH] use push_cc_arg for options add (#528) --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9e76c7e6..4a6a26b3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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());