diff --git a/lib/Interpreter/CppInterOp.cpp b/lib/Interpreter/CppInterOp.cpp index 3575bb2fa..d0a5115a4 100755 --- a/lib/Interpreter/CppInterOp.cpp +++ b/lib/Interpreter/CppInterOp.cpp @@ -3042,7 +3042,7 @@ namespace Cpp { CLANG_VERSION_MAJOR_STRING; #endif // We need to check if the detected resource directory is compatible. - if (llvm::sys::path::filename(detected_resource_dir) != version) + if (detected_resource_dir.find(version) == std::string::npos) return ""; return detected_resource_dir;