Disable endorsed libraries in plugin (#2536)
This commit is contained in:
+2
@@ -184,6 +184,8 @@ abstract class AbstractKotlinNativeCompile<T : KotlinCommonToolOptions> : Abstra
|
|||||||
// Args used by both the compiler and IDEA.
|
// Args used by both the compiler and IDEA.
|
||||||
protected open fun buildCommonArgs(defaultsOnly: Boolean = false): List<String> = mutableListOf<String>().apply {
|
protected open fun buildCommonArgs(defaultsOnly: Boolean = false): List<String> = mutableListOf<String>().apply {
|
||||||
add("-Xmulti-platform")
|
add("-Xmulti-platform")
|
||||||
|
// Endorsed libs are disabled in plugin.
|
||||||
|
add("-no-endorsed-libs")
|
||||||
|
|
||||||
// Compiler plugins.
|
// Compiler plugins.
|
||||||
compilerPluginClasspath?.let { pluginClasspath ->
|
compilerPluginClasspath?.let { pluginClasspath ->
|
||||||
|
|||||||
Reference in New Issue
Block a user