Skip to content

Commit

Permalink
Merge pull request #788 from whisperity/fix_ctu-test
Browse files Browse the repository at this point in the history
Properly understand relative path under the package root for clang-func-mapping
  • Loading branch information
whisperity authored Aug 9, 2017
2 parents bcfda94 + 5d45af8 commit 927979c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libcodechecker/generic_package_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,15 @@ def analyzer_binaries(self):

@property
def ctu_func_map_cmd(self):
return self.pckg_layout['ctu_func_map_cmd']
ctu_func_mapping = self.pckg_layout['ctu_func_map_cmd']

if os.path.dirname(ctu_func_mapping):
# If it is a relative path, it is by definition relative to
# the package_root, just like how analyzers are set up.
ctu_func_mapping = os.path.join(self.__package_root,
ctu_func_mapping)

return ctu_func_mapping


def get_context():
Expand Down

0 comments on commit 927979c

Please sign in to comment.