We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab04edc commit 0a246feCopy full SHA for 0a246fe
Sources/Workspace/DefaultPluginScriptRunner.swift
@@ -113,6 +113,7 @@ public struct DefaultPluginScriptRunner: PluginScriptRunner {
113
command += ["-module-cache-path", moduleCachePath]
114
}
115
116
+ // Parse the plugin as a library so that `@main` is supported even though there might be only a single source file.
117
command += ["-parse-as-library"]
118
119
command += sources.paths.map { $0.pathString }
0 commit comments