File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ extension Module {
157
157
158
158
var headerSearchPaths : ( key: String , value: String ) ? {
159
159
let headerPathKey = " HEADER_SEARCH_PATHS "
160
- let headerPaths = dependencies. flatMap { module -> AbsolutePath ? in
160
+ var headerPaths = dependencies. flatMap { module -> AbsolutePath ? in
161
161
switch module {
162
162
case let cModule as CModule :
163
163
return cModule. path
@@ -168,6 +168,11 @@ extension Module {
168
168
}
169
169
}
170
170
171
+ // For ClangModules add implicit search path to its own include directory.
172
+ if case let clangModule as ClangModule = self {
173
+ headerPaths. append ( clangModule. includeDir)
174
+ }
175
+
171
176
guard !headerPaths. isEmpty else { return nil }
172
177
173
178
if headerPaths. count == 1 , let first = headerPaths. first {
You can’t perform that action at this time.
0 commit comments