[xcodegen] Add --buildable-folders

This enables the use of folder references for
compatible targets, allowing new source files to
be added without needing to regenerate the project.
Currently disabled by default; I'd like to get
some living-on before enabling.
This commit is contained in:
Hamish Knight
2024-11-09 20:01:37 +00:00
parent a596880b65
commit 9a53db6b9a
7 changed files with 86 additions and 15 deletions

View File

@@ -83,6 +83,11 @@ struct ClangBuildArgsProvider {
return .init(for: .clang, args: fileArgs.sorted())
}
/// Whether the given path has any unique args not covered by `parent`.
func hasUniqueArgs(for path: RelativePath, parent: RelativePath) -> Bool {
args.hasUniqueArgs(for: path, parent: parent)
}
/// Whether the given file has build arguments.
func hasBuildArgs(for path: RelativePath) -> Bool {
!args.getArgs(for: path).isEmpty