Skip to content

Commit 54bf65b

Browse files
committed
[xcodegen] Include Obj-C(++) sources
Can't believe I missed these for so long.
1 parent 71eeb61 commit 54bf65b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

utils/swift-xcodegen/Sources/SwiftXcodeGen/Path/FileExtension.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ public enum FileExtension: String {
1616
case def
1717
case gyb
1818
case h
19+
case m
1920
case md
21+
case mm
2022
case modulemap
2123
case o
2224
case rst

utils/swift-xcodegen/Sources/SwiftXcodeGen/Path/PathProtocol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ extension PathProtocol {
124124
}
125125

126126
var isCSourceLike: Bool {
127-
hasExtension(.c, .cpp)
127+
hasExtension(.c, .cpp, .m, .mm)
128128
}
129129

130130
var isDocLike: Bool {

0 commit comments

Comments
 (0)