From 1c7f8c61e959426f2a79ef1d73c5034ae923812f Mon Sep 17 00:00:00 2001 From: David Vo Date: Sun, 30 Sep 2018 15:34:46 +1000 Subject: Fix args_are_cpp to look for -x without = Clang doesn't allow `=` between `-x` and the language name. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index dbced45e..80191cec 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -99,7 +99,7 @@ use std::sync::Arc; fn args_are_cpp(clang_args: &[String]) -> bool { return clang_args .windows(2) - .any(|w| w[0] == "-x=c++" || w[1] == "-x=c++" || w == &["-x", "c++"]); + .any(|w| w[0] == "-xc++" || w[1] == "-xc++" || w == &["-x", "c++"]); } bitflags! { -- cgit v1.2.3