Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/statiskit/AutoWIG into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Jan 16, 2018
2 parents 726740c + 65e9aba commit 1bc8eb5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/py/autowig/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ def pre_processing(asg, headers, flags, **kwargs):
warnings.warn('System includes not computed: parsing clang command output failed', Warning)
else:
sysincludes = sysincludes[sysincludes.index('#include <...> search starts here:')+1:sysincludes.index('End of search list.')]
sysincludes = [str(Path(sysinclude.strip()).abspath()) for sysinclude in sysincludes]
if system == 'win' and 'msvc_version' in kwargs:
msvc_version = kwargs.pop('msvc_version')
sysincludes = [str(Path(sysinclude.strip()).abspath()).replace('14.0', msvc_version) for sysinclude in sysincludes]
else:
sysincludes = [str(Path(sysinclude.strip()).abspath()) for sysinclude in sysincludes]
flags.extend(['-I' + sysinclude for sysinclude in sysincludes if not '-I' + sysinclude in flags])
for sysinclude in sysincludes:
asg.add_directory(sysinclude).is_searchpath = True
Expand Down

0 comments on commit 1bc8eb5

Please sign in to comment.