Skip to content

Eliminate duplicate rules in generated build.ninja caused by PR #873 #1012

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

Merged
merged 1 commit into from
May 26, 2017

Conversation

pushkarnk
Copy link
Member

@pushkarnk pushkarnk commented May 26, 2017

Changes of #873 produce these warnings in ninja for each target:

ninja: warning: multiple rules generate ../Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/Date.swift.o. builds involving this target will not be correct; continuing anyway

The problem is that in the process of generating a static library and a dynamic library, we're generating compile rules for all the targets twice. The right thing to do is to generate them once (for the static library) and simply reuse the objects in the rule to generate the dynamic library.

@pushkarnk
Copy link
Member Author

@parkera can you review this please?

@pushkarnk pushkarnk requested a review from parkera May 26, 2017 11:21
@parkera
Copy link
Contributor

parkera commented May 26, 2017

@swift-ci test and merge

@phausler
Copy link
Contributor

looks good to me, so effectively there is only one build for a .o but two products that consume .o files?

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.

4 participants