Skip to content

Commit 1c7f8c6

Browse files
committed
Fix args_are_cpp to look for -x without =
Clang doesn't allow `=` between `-x` and the language name.
1 parent c6f9fe0 commit 1c7f8c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ use std::sync::Arc;
9999
fn args_are_cpp(clang_args: &[String]) -> bool {
100100
return clang_args
101101
.windows(2)
102-
.any(|w| w[0] == "-x=c++" || w[1] == "-x=c++" || w == &["-x", "c++"]);
102+
.any(|w| w[0] == "-xc++" || w[1] == "-xc++" || w == &["-x", "c++"]);
103103
}
104104

105105
bitflags! {

0 commit comments

Comments
 (0)