Skip to content

Commit 056a6ea

Browse files
committed
Make user-specified cflags/cxxflags take precedence over cc-rs flags
1 parent 94da9de commit 056a6ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -726,14 +726,14 @@ impl Config {
726726
let mut flagsflag = OsString::from("-D");
727727
flagsflag.push(&flag_var);
728728
flagsflag.push("=");
729-
flagsflag.push(extra);
730729
for arg in compiler.args() {
731730
if skip_arg(arg) {
732731
continue;
733732
}
734-
flagsflag.push(" ");
735733
flagsflag.push(arg);
734+
flagsflag.push(" ");
736735
}
736+
flagsflag.push(extra);
737737
cmd.arg(flagsflag);
738738
}
739739

0 commit comments

Comments
 (0)