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

De-duplicate BuildTarget.sourses #13868

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

klokik
Copy link
Contributor

@klokik klokik commented Nov 4, 2024

If same source is provided by multiple dependencies it was added multiple times, as added_sources was only guarding against duplicates within the same source list. This was not a problem with ninja, but triggers multiple sanity checks within xcode backend while attempting to create multiple ids for the same file.

I encountered this problem with gtest_main from wrapdb.

@klokik klokik requested a review from jpakkane as a code owner November 4, 2024 19:09
mesonbuild/build.py Outdated Show resolved Hide resolved
@bruchar1
Copy link
Member

bruchar1 commented Nov 5, 2024

There is a typo in commit message: s/sourses/sources/

If the same source is provided by multiple dependencies it was added
multiple times, as `added_sources` was only guarding against duplicates
within the same source list. This was not a problem with ninja, but it
triggers multiple sanity checks within xcode backend while attempting to
create multiple ids for the same file.

Rename `added_sources` to `seen_sources` as per reviewers request
@klokik
Copy link
Contributor Author

klokik commented Nov 6, 2024

Fixed typo

@bruchar1 bruchar1 added this to the 1.6.1 milestone Nov 6, 2024
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.

3 participants