Skip to content

Commit 59255ce

Browse files
authored
Pass -Wno-unused-command-line-argument to clang in is_flag_supported (#886)
1 parent 9b569ae commit 59255ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,11 @@ impl Build {
523523
if compiler.family.verbose_stderr() {
524524
compiler.remove_arg("-v".into());
525525
}
526+
if compiler.family == ToolFamily::Clang {
527+
// Avoid reporting that the arg is unsupported just because the
528+
// compiler complains that it wasn't used.
529+
compiler.push_cc_arg("-Wno-unused-command-line-argument".into());
530+
}
526531

527532
let mut cmd = compiler.to_command();
528533
let is_arm = target.contains("aarch64") || target.contains("arm");

0 commit comments

Comments
 (0)