Skip to content

Commit c77f8c7

Browse files
author
bors-servo
authored
Auto merge of #1404 - auscompgeek:fix-args-are-cpp, r=emilio
Fix args_are_cpp to look for -x without = Clang doesn't allow `=` between `-x` and the language name.
2 parents c6f9fe0 + 1c7f8c6 commit c77f8c7

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)