Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of Dependency's include_type in few places #13861

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

artem
Copy link

@artem artem commented Nov 3, 2024

Fixes #13858

@artem
Copy link
Author

artem commented Nov 18, 2024

Any objections?

@@ -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()))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: you do self.get_include_dirs().copy() below, and copy.copy(self.get_include_dirs()) here.... I think I prefer using the copy() method of list, since it is available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add_project_dependencies() ignores 'preserve' include_type property
2 participants