mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
GitOrigin-RevId: cf0beceef7ef16ca73082acf37355e00e5277970
This commit is contained in:
committed by
intellij-monorepo-bot
parent
350dcb0466
commit
8d29a4140d
@@ -75,7 +75,6 @@ fun prepareCompilerConfiguration(
|
||||
configurePlugins(
|
||||
args = args,
|
||||
workingDir = baseDir,
|
||||
targetLabel = args.mandatorySingle(JvmBuilderFlags.TARGET_LABEL),
|
||||
abiOutputConsumer = abiOutputConsumer,
|
||||
) {
|
||||
config.add(CompilerPluginRegistrar.COMPILER_PLUGIN_REGISTRARS, it.compilerPluginRegistrar!!)
|
||||
@@ -167,7 +166,7 @@ fun configureModule(
|
||||
@OptIn(ExperimentalCompilerApi::class)
|
||||
fun getDebugInfoAboutPlugins(args: ArgMap<JvmBuilderFlags>, baseDir: Path, targetLabel: String): String {
|
||||
val sb = StringBuilder()
|
||||
configurePlugins(args = args, workingDir = baseDir, targetLabel = targetLabel, abiOutputConsumer = null) { info ->
|
||||
configurePlugins(args = args, workingDir = baseDir, abiOutputConsumer = null) { info ->
|
||||
sb.append(info.compilerPluginRegistrar!!.toString())
|
||||
if (!info.pluginOptions.isEmpty()) {
|
||||
sb.append("(" + info.pluginOptions.joinToString(separator = ", ") + ")")
|
||||
|
||||
@@ -21,13 +21,13 @@ import org.jetbrains.kotlinx.serialization.compiler.extensions.SerializationPlug
|
||||
import java.net.URLClassLoader
|
||||
import java.nio.file.Path
|
||||
|
||||
@Suppress("SameParameterValue")
|
||||
private fun cliOptionValue(name: String, value: String) = CliOptionValue(pluginId = "<NO_ID>", optionName = name, value = value)
|
||||
|
||||
@OptIn(ExperimentalCompilerApi::class)
|
||||
internal inline fun configurePlugins(
|
||||
args: ArgMap<JvmBuilderFlags>,
|
||||
workingDir: Path,
|
||||
targetLabel: String,
|
||||
noinline abiOutputConsumer: ((List<OutputFile>) -> Unit)?,
|
||||
consumer: (RegisteredPluginInfo) -> Unit,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user