Move CompilerMode and TargetPlatform to CompilationOptions
Original commit: e44cc43ada
This commit is contained in:
@@ -99,13 +99,10 @@ class JpsKotlinCompilerRunner : KotlinCompilerRunner<JpsCompilerEnvironment>() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val res = withDaemon(environment, retryOnConnectionError = true) { daemon, sessionId ->
|
val res = withDaemon(environment, retryOnConnectionError = true) { daemon, sessionId ->
|
||||||
daemon.compile(
|
val options = CompilationOptions(CompileService.CompilerMode.JPS_COMPILER,
|
||||||
sessionId,
|
targetPlatform,
|
||||||
CompileService.CompilerMode.JPS_COMPILER,
|
reportingFilters = getReportingFilters(compilerArgs.verbose))
|
||||||
targetPlatform,
|
daemon.compile(sessionId, compilerArgs, options, JpsCompilerServicesFacadeImpl(environment))
|
||||||
compilerArgs,
|
|
||||||
CompilationOptions(reportingFilters = getReportingFilters(compilerArgs.verbose)),
|
|
||||||
JpsCompilerServicesFacadeImpl(environment))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return res?.get()?.let { exitCodeFromProcessExitCode(it) }
|
return res?.get()?.let { exitCodeFromProcessExitCode(it) }
|
||||||
|
|||||||
Reference in New Issue
Block a user