Skip to content

Commit d407617

Browse files
committed
Filters out non-header files from publicHeaders
Filters out non-header files from publicHeaders
1 parent abc4d80 commit d407617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/generator/src/Generator+AddTargets.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Product for target "\(id)" not found in `products`
146146
return nil
147147
}
148148

149-
let publicHeaders = inputs.hdrs
149+
let publicHeaders = inputs.hdrs.filter(\.path.isHeader)
150150
let projectHeaders = Set(inputs.srcs).filter(\.path.isHeader)
151151
.union(Set(inputs.nonArcSrcs).filter(\.path.isHeader))
152152
.subtracting(publicHeaders)

0 commit comments

Comments
 (0)