Skip to content

Commit 9eaa565

Browse files
committed
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
1 parent baa71c0 commit 9eaa565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1984,11 +1984,11 @@ impl Tool {
19841984
Some(ref cc_wrapper_path) => {
19851985
let mut cmd = Command::new(&cc_wrapper_path);
19861986
cmd.arg(&self.path);
1987-
cmd.args(&self.cc_wrapper_args);
19881987
cmd
19891988
}
19901989
None => Command::new(&self.path),
19911990
};
1991+
cmd.args(&self.cc_wrapper_args);
19921992
cmd.args(&self.args);
19931993
for &(ref k, ref v) in self.env.iter() {
19941994
cmd.env(k, v);

0 commit comments

Comments
 (0)