Skip to content

Commit 998684a

Browse files
committed
Build plugin executables with debug symbols
This seems like the better default until we might add a dedicated debugging feature for plugins.
1 parent 691bbbd commit 998684a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Workspace/DefaultPluginScriptRunner.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ public struct DefaultPluginScriptRunner: PluginScriptRunner, Cancellable {
164164
// Add any extra flags required as indicated by the ManifestLoader.
165165
commandLine += self.toolchain.swiftCompilerFlags
166166

167+
commandLine.append("-g")
168+
167169
// Add the Swift language version implied by the package tools version.
168170
commandLine += ["-swift-version", toolsVersion.swiftLanguageVersion.rawValue]
169171

0 commit comments

Comments
 (0)