Browse Source

Pass cc_wrapper_args to all compiler invocations

Shouldn't just be if we have a wrapper! This should help detect more flags in
`CC` when present.

Closes #328
wintest
Alex Crichton 7 years ago
parent
commit
9eaa56536e
  1. 2
      src/lib.rs

2
src/lib.rs

@ -1984,11 +1984,11 @@ impl Tool {
Some(ref cc_wrapper_path) => { Some(ref cc_wrapper_path) => {
let mut cmd = Command::new(&cc_wrapper_path); let mut cmd = Command::new(&cc_wrapper_path);
cmd.arg(&self.path); cmd.arg(&self.path);
cmd.args(&self.cc_wrapper_args);
cmd cmd
} }
None => Command::new(&self.path), None => Command::new(&self.path),
}; };
cmd.args(&self.cc_wrapper_args);
cmd.args(&self.args); cmd.args(&self.args);
for &(ref k, ref v) in self.env.iter() { for &(ref k, ref v) in self.env.iter() {
cmd.env(k, v); cmd.env(k, v);

Loading…
Cancel
Save