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

Handle targets with same name but in different projects #78

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

bmxav
Copy link
Contributor

@bmxav bmxav commented Sep 19, 2024

It's possible for multiple projects to contain the same target name, but we only track targets in the build log by the target name. Because of this we will see duplicated bitcode files across all targets with the same name. The solution implemented here is to track targets by both project name and target name in the build log as we do not have access to GUIDs there. We then use these names to map back to the appropriate PIF targets.

The challenge is pulling the name of the project since it is not necessarily present in the PIF files, so we fallback to using the name of the root group node in the project. I am not sure this is the 100% correct way to go, but I can't think of anything better at the moment.

Fixes #46

@bmxav bmxav merged commit d762f7f into develop Sep 26, 2024
2 checks passed
@bmxav bmxav deleted the project-specific-targets branch September 26, 2024 14:28
@bmxav bmxav restored the project-specific-targets branch September 26, 2024 18:06
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.

Targets with same name but different type end up together in IR directory
2 participants