From b73593f2aa3bc2a176c60707ed8348b020aa54d1 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Wed, 15 Nov 2017 20:10:14 +0000 Subject: [PATCH] [clangd] Fix flag name from r318327 llvm-svn: 318329 --- clang-tools-extra/clangd/GlobalCompilationDatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp b/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp index fb99b82..4466e40 100644 --- a/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp +++ b/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp @@ -35,7 +35,7 @@ tooling::CompileCommand getDefaultCompileCommand(PathRef File) { // We force PC because PS4 will change --std from under us. // FIXME: there must be a more principled way to do this! std::vector 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=*/""); -- 2.7.4