diff options
author | Sam McCall <sam.mccall@gmail.com> | 2017-11-15 21:33:56 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2017-11-15 21:33:56 +0000 |
commit | 8f0cbfe979e3f4071e5565b5508177816b6aabdb (patch) | |
tree | a6dbea2e5554fe1777462ea7d5bf11e79a194276 /clangd/GlobalCompilationDatabase.cpp | |
parent | 9d5bba661f9209f252a036c257bb2bd963c25b30 (diff) |
[clangd] Revert broken r318329 and disable tests on PS4
(Clearly this is not a permanent solution)
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@318337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clangd/GlobalCompilationDatabase.cpp')
-rw-r--r-- | clangd/GlobalCompilationDatabase.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clangd/GlobalCompilationDatabase.cpp b/clangd/GlobalCompilationDatabase.cpp index 4466e402..1db3e66a 100644 --- a/clangd/GlobalCompilationDatabase.cpp +++ b/clangd/GlobalCompilationDatabase.cpp @@ -31,11 +31,7 @@ static void addExtraFlags(tooling::CompileCommand &Command, } tooling::CompileCommand getDefaultCompileCommand(PathRef File) { - // We don't specify --std because we want to infer it from the filename. - // 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", "-target=unknown-pc-unknown", File.str()}; + std::vector<std::string> CommandLine{"clang", "-fsyntax-only", File.str()}; return tooling::CompileCommand(llvm::sys::path::parent_path(File), llvm::sys::path::filename(File), CommandLine, /*Output=*/""); |