You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Starts evaluating a plugin by compiling it and running it as a subprocess. The name is used as the basename for the executable and auxiliary files. The tools version controls the availability of APIs in PackagePlugin, and should be set to the tools version of the package that defines the plugin (not the package containing the target to which it is being applied). This function returns immediately and then repeated calls the output handler on the given callback queue as plain-text output is received from the plugin, and then eventually calls the completion handler on the given callback queue once the plugin is done.
56
60
publicfunc runPluginScript(
57
61
sourceFiles:[Basics.AbsolutePath],
@@ -109,7 +113,7 @@ public struct DefaultPluginScriptRunner: PluginScriptRunner, Cancellable {
109
113
publicvarhostTriple:Triple{
110
114
returnself.toolchain.targetTriple
111
115
}
112
-
116
+
113
117
/// Starts compiling a plugin script asynchronously and when done, calls the completion handler on the callback queue with the results (including the path of the compiled plugin executable and with any emitted diagnostics, etc). Existing compilation results that are still valid are reused, if possible. This function itself returns immediately after starting the compile. Note that the completion handler only receives a `.failure` result if the compiler couldn't be invoked at all; a non-zero exit code from the compiler still returns `.success` with a full compilation result that notes the error in the diagnostics (in other words, a `.failure` result only means "failure to invoke the compiler").
114
118
publicfunc compilePluginScript(
115
119
sourceFiles:[Basics.AbsolutePath],
@@ -136,7 +140,7 @@ public struct DefaultPluginScriptRunner: PluginScriptRunner, Cancellable {
136
140
137
141
// We use the toolchain's Swift compiler for compiling the plugin.
0 commit comments