Skip to content

Commit ce159ca

Browse files
authored
Fix dump symbol graph target list (#7143)
We only build a module for executable targets in very limited cases (when a test target depends on it), so we can't generally expect them to be available for dumping their symbol graph.
1 parent ab018b7 commit ce159ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Commands/PackageTools/DumpCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct DumpSymbolGraph: SwiftCommand {
6666
// Run the tool once for every library and executable target in the root package.
6767
let buildPlan = try buildSystem.buildPlan
6868
let symbolGraphDirectory = buildPlan.buildParameters.dataPath.appending("symbolgraph")
69-
let targets = try buildSystem.getPackageGraph().rootPackages.flatMap{ $0.targets }.filter{ $0.type == .library || $0.type == .executable }
69+
let targets = try buildSystem.getPackageGraph().rootPackages.flatMap{ $0.targets }.filter{ $0.type == .library }
7070
for target in targets {
7171
print("-- Emitting symbol graph for", target.name)
7272
try symbolGraphExtractor.extractSymbolGraph(

0 commit comments

Comments
 (0)