Skip to content

Commit

Permalink
cpp: handle -I separately
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Feb 10, 2024
1 parent c7b3c42 commit d546812
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ctypesgen/parser/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ def parse(self, filename):

cmd = [*self.options.cpp, "-dD"]
flags_dict = self._get_default_flags()
flags_dict["-I"] = self.options.include_search_paths
cmd += self._serialize_flags_dict(flags_dict)
for p in self.options.include_search_paths:
cmd += ["-I", p]
cmd += self.options.cppargs + [filename]
self.cparser.handle_status(cmd)

Expand Down

0 comments on commit d546812

Please sign in to comment.