Skip to content

Commit

Permalink
Merge pull request Ericsson#2060 from dkrupp/isystem_fix
Browse files Browse the repository at this point in the history
isystem path was wrong
  • Loading branch information
gyorb authored Apr 10, 2019
2 parents cb7872e + c4f9a48 commit 22bc17e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions analyzer/codechecker_analyzer/buildlog/log_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,11 @@ def get_compiler_includes(compiler, language, compiler_flags):
ICI = ImplicitCompilerInfo
include_dirs = ICI.__filter_compiler_includes(
ICI.__parse_compiler_includes(ICI.__get_compiler_err(cmd)))

return ["-isystem " + os.path.normpath(idir) for idir in include_dirs]
idirs = []
for idir in include_dirs:
idirs.append("-isystem")
idirs.append(os.path.normpath(idir))
return idirs

@staticmethod
def get_compiler_target(compiler):
Expand Down
1 change: 1 addition & 0 deletions analyzer/tests/functional/analyze/test_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def test_compiler_info_files(self):
self.assertEquals(len(data), 2)
self.assertTrue("clang++" in data)
self.assertTrue("g++" in data)
self.assertEqual(data["clang++"]["includes"][0], "-isystem")
except ValueError:
self.fail("json.load should successfully parse the file %s"
% info_File)
Expand Down

0 comments on commit 22bc17e

Please sign in to comment.