Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added support for compilerFlags in source list. If any source file
metadata (like compilerFlags) is attached to a directory the metadata
propagates downwards to all children recursively until the files are
reached.
Since there is an extra bit of metadata we need to carry around during
production of PBXObjects, we can no longer pass a
Path
directly.Source
needspath
to beString
because we don't know thebasePath until the spec is fully loaded. When we do have the basePath
we can compute the real
Path
and start to use PathKit APIs.I attempted a first pass where I just used the
Source
everywhere andforwarded along a basePath at all operations that needed it, but that
was too messy, so I ended up making another struct that enriched the
source with the basePath (called
EnrichedSource
). I don't love thename, let me know if you come up with a better one.
Fixtures and unit tests are updated as well.