Skip to content

Commit 2bfc102

Browse files
committed
we were not correctly excluding system dependencies and executable targets
1 parent 67e56d1 commit 2bfc102

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Sources/SymbolGraphBuilder/Builds/SSGC.PackageBuild.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ extension SSGC.PackageBuild
8989
default: continue
9090
}
9191

92-
modulesToDump[constituent.id] = include
92+
if constituent.module.type.hasSymbols
93+
{
94+
modulesToDump[constituent.id] = include
95+
}
9396
}
9497
}
9598

Sources/SymbolGraphBuilder/Sources/SSGC.DocumentationSources.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ extension SSGC.DocumentationSources
4747
moduleIndexes = try moduleLayouts.map
4848
{
4949
let id:Symbol.Module = $0.id
50-
let constituents:[SSGC.ModuleLayout] = try self.constituents(of: $0)
50+
let constituents:[SSGC.ModuleLayout] = try self.constituents(of: $0).filter(
51+
\.module.type.hasSymbols)
5152

5253
let symbols:
5354
(

0 commit comments

Comments
 (0)