Disable endorsed libraries in plugin (#2536)

This commit is contained in:
LepilkinaElena
2019-09-16 09:43:22 +03:00
committed by GitHub
parent 3120eff6f5
commit 7cae9214d7
@@ -184,6 +184,8 @@ abstract class AbstractKotlinNativeCompile<T : KotlinCommonToolOptions> : Abstra
// Args used by both the compiler and IDEA.
protected open fun buildCommonArgs(defaultsOnly: Boolean = false): List<String> = mutableListOf<String>().apply {
add("-Xmulti-platform")
// Endorsed libs are disabled in plugin.
add("-no-endorsed-libs")
// Compiler plugins.
compilerPluginClasspath?.let { pluginClasspath ->