Skip to content

Commit

Permalink
Pass -Wno-unused-command-line-argument to clang in is_flag_supported (
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc authored Nov 3, 2023
1 parent 9b569ae commit 59255ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,11 @@ impl Build {
if compiler.family.verbose_stderr() {
compiler.remove_arg("-v".into());
}
if compiler.family == ToolFamily::Clang {
// Avoid reporting that the arg is unsupported just because the
// compiler complains that it wasn't used.
compiler.push_cc_arg("-Wno-unused-command-line-argument".into());
}

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

0 comments on commit 59255ce

Please sign in to comment.