mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[xcodegen] Avoid buildable folders for mixed Swift targets
If a Swift target has sources in its folder that aren't part of the target, we can't form a buildable folder.
This commit is contained in:
@@ -127,6 +127,10 @@ extension PathProtocol {
|
||||
hasExtension(.c, .cpp, .m, .mm)
|
||||
}
|
||||
|
||||
var isSourceLike: Bool {
|
||||
isCSourceLike || hasExtension(.swift)
|
||||
}
|
||||
|
||||
var isDocLike: Bool {
|
||||
hasExtension(.md, .rst) || fileName.starts(with: "README")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user