Skip to content

Commit b54ac5c

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 e79908c commit b54ac5c

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
@@ -166,6 +166,8 @@ public struct DefaultPluginScriptRunner: PluginScriptRunner, Cancellable {
166166
// Add any extra flags required as indicated by the ManifestLoader.
167167
commandLine += self.toolchain.swiftCompilerFlags
168168

169+
commandLine.append("-g")
170+
169171
// Add the Swift language version implied by the package tools version.
170172
commandLine += ["-swift-version", toolsVersion.swiftLanguageVersion.rawValue]
171173

0 commit comments

Comments
 (0)