Author: sammccall Date: Wed Nov 15 12:10:14 2017 New Revision: 318329 URL: http://llvm.org/viewvc/llvm-project?rev=318329&view=rev Log: [clangd] Fix flag name from r318327
Modified: clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp Modified: clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp?rev=318329&r1=318328&r2=318329&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp (original) +++ clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp Wed Nov 15 12:10:14 2017 @@ -35,7 +35,7 @@ tooling::CompileCommand getDefaultCompil // We force PC because PS4 will change --std from under us. // FIXME: there must be a more principled way to do this! std::vector<std::string> CommandLine{ - "clang", "-fsyntax-only", "-triple=unknown-pc-unknown", File.str()}; + "clang", "-fsyntax-only", "-target=unknown-pc-unknown", File.str()}; return tooling::CompileCommand(llvm::sys::path::parent_path(File), llvm::sys::path::filename(File), CommandLine, /*Output=*/""); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits