Skip to content

Commit 054d170

Browse files
authored
Merge pull request #593 from ddunbar/release-build-fix
[PackageLoading] Fix public declaration on a property.
2 parents 87e2b89 + e316bf8 commit 054d170

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Sources/PackageLoading/ModuleMapGenerator.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,29 @@ public let moduleMapFilename = "module.modulemap"
1616

1717
/// A protocol for modules which might have a modulemap.
1818
protocol ModuleMapProtocol {
19-
2019
var moduleMapPath: AbsolutePath { get }
2120

2221
var moduleMapDirectory: AbsolutePath { get }
2322
}
2423

25-
extension ModuleMapProtocol {
26-
public var moduleMapPath: AbsolutePath {
27-
return moduleMapDirectory.appending(component: moduleMapFilename)
28-
}
29-
}
30-
3124
extension CModule: ModuleMapProtocol {
3225
var moduleMapDirectory: AbsolutePath {
3326
return path
3427
}
28+
29+
public var moduleMapPath: AbsolutePath {
30+
return moduleMapDirectory.appending(component: moduleMapFilename)
31+
}
3532
}
3633

3734
extension ClangModule: ModuleMapProtocol {
3835
var moduleMapDirectory: AbsolutePath {
3936
return includeDir
4037
}
38+
39+
public var moduleMapPath: AbsolutePath {
40+
return moduleMapDirectory.appending(component: moduleMapFilename)
41+
}
4142
}
4243

4344
/// A modulemap generator for clang modules.

0 commit comments

Comments
 (0)