We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_flag_supported
1 parent 9b569ae commit 59255ceCopy full SHA for 59255ce
src/lib.rs
@@ -523,6 +523,11 @@ impl Build {
523
if compiler.family.verbose_stderr() {
524
compiler.remove_arg("-v".into());
525
}
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
+ }
531
532
let mut cmd = compiler.to_command();
533
let is_arm = target.contains("aarch64") || target.contains("arm");
0 commit comments