From 9eaa56536ec420c7248cb52e10d3538568700d62 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 10 Jul 2018 15:16:27 -0700 Subject: [PATCH] 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 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2e17c50..0222f7a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1984,11 +1984,11 @@ impl Tool { Some(ref cc_wrapper_path) => { let mut cmd = Command::new(&cc_wrapper_path); cmd.arg(&self.path); - cmd.args(&self.cc_wrapper_args); cmd } None => Command::new(&self.path), }; + cmd.args(&self.cc_wrapper_args); cmd.args(&self.args); for &(ref k, ref v) in self.env.iter() { cmd.env(k, v);