Skip to content

Commit

Permalink
Merge pull request Ericsson#3204 from csordasmarton/handle_ccache
Browse files Browse the repository at this point in the history
[analyze] Fix ccache compiler detection
  • Loading branch information
csordasmarton authored Mar 2, 2021
2 parents ce64dfb + a3c7851 commit 0aad2ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions analyzer/codechecker_analyzer/analyzer_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,11 @@ def __populate_analyzers(self):

self.__analyzers[name] = os.path.realpath(compiler_binary)

# If the compiler binary is a simlink to ccache, use the
# original compiler binary.
if self.__analyzers[name].endswith("/ccache"):
self.__analyzers[name] = compiler_binary

def __populate_replacer(self):
""" Set clang-apply-replacements tool. """
replacer_binary = self.pckg_layout.get('clang-apply-replacements')
Expand Down

0 comments on commit 0aad2ed

Please sign in to comment.