Skip to content

Commit

Permalink
meson: Fix dep.partial_dependency() discarding include_type
Browse files Browse the repository at this point in the history
  • Loading branch information
artem committed Nov 3, 2024
1 parent f86fd8d commit 8152aac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mesonbuild/dependencies/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ def __deepcopy__(self, memo: T.Dict[int, 'InternalDependency']) -> 'InternalDepe
for k, v in self.__dict__.items():
if k in {'libraries', 'whole_libraries'}:
setattr(result, k, copy.copy(v))
elif k == 'include_directories':
setattr(result, k, copy.copy(self.get_include_dirs()))
else:
setattr(result, k, copy.deepcopy(v, memo))
return result
Expand All @@ -328,7 +330,7 @@ def get_partial_dependency(self, *, compile_args: bool = False,
final_whole_libraries = self.whole_libraries.copy() if links else []
final_sources = self.sources.copy() if sources else []
final_extra_files = self.extra_files.copy() if extra_files else []
final_includes = self.include_directories.copy() if includes else []
final_includes = self.get_include_dirs().copy() if includes else []
final_deps = [d.get_partial_dependency(
compile_args=compile_args, link_args=link_args, links=links,
includes=includes, sources=sources) for d in self.ext_deps]
Expand Down

0 comments on commit 8152aac

Please sign in to comment.