Native: make parseBinaryOptions public

This commit is contained in:
Svyatoslav Scherbina
2021-11-26 16:42:16 +03:00
committed by Space
parent 6917ff7d2a
commit ab6c8a4abe
@@ -592,13 +592,13 @@ private fun parseDebugPrefixMap(
} }
}.toMap() }.toMap()
private class BinaryOptionWithValue<T : Any>(val option: BinaryOption<T>, val value: T) class BinaryOptionWithValue<T : Any>(val option: BinaryOption<T>, val value: T)
private fun <T : Any> CompilerConfiguration.put(binaryOptionWithValue: BinaryOptionWithValue<T>) { private fun <T : Any> CompilerConfiguration.put(binaryOptionWithValue: BinaryOptionWithValue<T>) {
this.put(binaryOptionWithValue.option.compilerConfigurationKey, binaryOptionWithValue.value) this.put(binaryOptionWithValue.option.compilerConfigurationKey, binaryOptionWithValue.value)
} }
private fun parseBinaryOptions( fun parseBinaryOptions(
arguments: K2NativeCompilerArguments, arguments: K2NativeCompilerArguments,
configuration: CompilerConfiguration configuration: CompilerConfiguration
): List<BinaryOptionWithValue<*>> { ): List<BinaryOptionWithValue<*>> {