Skip to content

Commit 0a246fe

Browse files
committed
Add a comment based on review feedback.
1 parent ab04edc commit 0a246fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Workspace/DefaultPluginScriptRunner.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public struct DefaultPluginScriptRunner: PluginScriptRunner {
113113
command += ["-module-cache-path", moduleCachePath]
114114
}
115115

116+
// Parse the plugin as a library so that `@main` is supported even though there might be only a single source file.
116117
command += ["-parse-as-library"]
117118

118119
command += sources.paths.map { $0.pathString }

0 commit comments

Comments
 (0)