mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user