Index: clang/lib/Tooling/JSONCompilationDatabase.cpp =================================================================== --- clang/lib/Tooling/JSONCompilationDatabase.cpp +++ clang/lib/Tooling/JSONCompilationDatabase.cpp @@ -137,11 +137,10 @@ if (Syntax == JSONCommandLineSyntax::AutoDetect) { Syntax = JSONCommandLineSyntax::Gnu; llvm::Triple Triple(llvm::sys::getProcessTriple()); - if (Triple.getOS() == llvm::Triple::OSType::Win32) { + if (Triple.isOSWindows()) { // Assume Windows command line parsing on Win32 unless the triple // explicitly tells us otherwise. - if (!Triple.hasEnvironment() || - Triple.getEnvironment() == llvm::Triple::EnvironmentType::MSVC) + if (!Triple.isWindowsCygwinEnvironment()) Syntax = JSONCommandLineSyntax::Windows; } }