diff --git a/Sources/Commands/PackageTools/DumpCommands.swift b/Sources/Commands/PackageTools/DumpCommands.swift index 7f9ea316760..752301370c6 100644 --- a/Sources/Commands/PackageTools/DumpCommands.swift +++ b/Sources/Commands/PackageTools/DumpCommands.swift @@ -66,7 +66,7 @@ struct DumpSymbolGraph: SwiftCommand { // Run the tool once for every library and executable target in the root package. let buildPlan = try buildSystem.buildPlan let symbolGraphDirectory = buildPlan.buildParameters.dataPath.appending("symbolgraph") - let targets = try buildSystem.getPackageGraph().rootPackages.flatMap{ $0.targets }.filter{ $0.type == .library || $0.type == .executable } + let targets = try buildSystem.getPackageGraph().rootPackages.flatMap{ $0.targets }.filter{ $0.type == .library } for target in targets { print("-- Emitting symbol graph for", target.name) try symbolGraphExtractor.extractSymbolGraph(