File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -16,28 +16,29 @@ public let moduleMapFilename = "module.modulemap"
16
16
17
17
/// A protocol for modules which might have a modulemap.
18
18
protocol ModuleMapProtocol {
19
-
20
19
var moduleMapPath : AbsolutePath { get }
21
20
22
21
var moduleMapDirectory : AbsolutePath { get }
23
22
}
24
23
25
- extension ModuleMapProtocol {
26
- public var moduleMapPath : AbsolutePath {
27
- return moduleMapDirectory. appending ( component: moduleMapFilename)
28
- }
29
- }
30
-
31
24
extension CModule : ModuleMapProtocol {
32
25
var moduleMapDirectory : AbsolutePath {
33
26
return path
34
27
}
28
+
29
+ public var moduleMapPath : AbsolutePath {
30
+ return moduleMapDirectory. appending ( component: moduleMapFilename)
31
+ }
35
32
}
36
33
37
34
extension ClangModule : ModuleMapProtocol {
38
35
var moduleMapDirectory : AbsolutePath {
39
36
return includeDir
40
37
}
38
+
39
+ public var moduleMapPath : AbsolutePath {
40
+ return moduleMapDirectory. appending ( component: moduleMapFilename)
41
+ }
41
42
}
42
43
43
44
/// A modulemap generator for clang modules.
You can’t perform that action at this time.
0 commit comments