diff options
author | Nathan Ridge <zeratul976@hotmail.com> | 2020-10-04 01:07:20 -0400 |
---|---|---|
committer | Nathan Ridge <zeratul976@hotmail.com> | 2020-10-27 01:46:32 -0400 |
commit | 2756e2ee0bceaf532d4990cbb4f2a84fe62b6b84 (patch) | |
tree | 773e42ec994f870425199bd52307f72f0ce49b4c /clang/lib/Tooling/JSONCompilationDatabase.cpp | |
parent | b69919b537fffcc5b6aaa6d78e2c039725a81f5b (diff) | |
download | llvm-2756e2ee0bceaf532d4990cbb4f2a84fe62b6b84.zip llvm-2756e2ee0bceaf532d4990cbb4f2a84fe62b6b84.tar.gz llvm-2756e2ee0bceaf532d4990cbb4f2a84fe62b6b84.tar.bz2 |
[libTooling] Recognize sccache as a compiler wrapper in compilation database commands
sccache is a compiler caching tool similar to ccache.
Differential Revision: https://reviews.llvm.org/D88790
Diffstat (limited to 'clang/lib/Tooling/JSONCompilationDatabase.cpp')
-rw-r--r-- | clang/lib/Tooling/JSONCompilationDatabase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Tooling/JSONCompilationDatabase.cpp b/clang/lib/Tooling/JSONCompilationDatabase.cpp index 67a42d3..4aa1685 100644 --- a/clang/lib/Tooling/JSONCompilationDatabase.cpp +++ b/clang/lib/Tooling/JSONCompilationDatabase.cpp @@ -272,7 +272,8 @@ static bool unwrapCommand(std::vector<std::string> &Args) { return false; StringRef Wrapper = stripExecutableExtension(llvm::sys::path::filename(Args.front())); - if (Wrapper == "distcc" || Wrapper == "gomacc" || Wrapper == "ccache") { + if (Wrapper == "distcc" || Wrapper == "gomacc" || Wrapper == "ccache" || + Wrapper == "sccache") { // Most of these wrappers support being invoked 3 ways: // `distcc g++ file.c` This is the mode we're trying to match. // We need to drop `distcc`. |