summaryrefslogtreecommitdiffstats
path: root/clangd/GlobalCompilationDatabase.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2017-11-15 20:10:14 +0000
committerSam McCall <sam.mccall@gmail.com>2017-11-15 20:10:14 +0000
commit9d5bba661f9209f252a036c257bb2bd963c25b30 (patch)
tree7d7f2133cdf200adbfd3db16414c8e1128f47819 /clangd/GlobalCompilationDatabase.cpp
parentcea22cf9b0cafa9df2b13190606216b6ed536714 (diff)
[clangd] Fix flag name from r318327
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@318329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clangd/GlobalCompilationDatabase.cpp')
-rw-r--r--clangd/GlobalCompilationDatabase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clangd/GlobalCompilationDatabase.cpp b/clangd/GlobalCompilationDatabase.cpp
index fb99b825..4466e402 100644
--- a/clangd/GlobalCompilationDatabase.cpp
+++ b/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<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=*/"");