[Native] Add '-Xexternal-dependencies' CLI parameter to pass external deps
^KT-44626
This commit is contained in:
@@ -338,6 +338,8 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
|
|||||||
WorkerExceptionHandling.LEGACY
|
WorkerExceptionHandling.LEGACY
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
arguments.externalDependencies?.let { put(EXTERNAL_DEPENDENCIES, it) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+9
@@ -142,6 +142,15 @@ class K2NativeCompilerArguments : CommonCompilerArguments() {
|
|||||||
)
|
)
|
||||||
var exportedLibraries: Array<String>? = null
|
var exportedLibraries: Array<String>? = null
|
||||||
|
|
||||||
|
@Argument(
|
||||||
|
value = "-Xexternal-dependencies",
|
||||||
|
valueDescription = "<path>",
|
||||||
|
description = "Path to the file containing external dependencies.\n" +
|
||||||
|
"External dependencies are required for verbose output in case of IR linker errors,\n" +
|
||||||
|
"but they do not affect compilation at all."
|
||||||
|
)
|
||||||
|
var externalDependencies: String? = null
|
||||||
|
|
||||||
@Argument(value="-Xfake-override-validator", description = "Enable IR fake override validator")
|
@Argument(value="-Xfake-override-validator", description = "Enable IR fake override validator")
|
||||||
var fakeOverrideValidator: Boolean = false
|
var fakeOverrideValidator: Boolean = false
|
||||||
|
|
||||||
|
|||||||
+2
@@ -165,6 +165,8 @@ class KonanConfigKeys {
|
|||||||
val PROPERTY_LAZY_INITIALIZATION: CompilerConfigurationKey<Boolean>
|
val PROPERTY_LAZY_INITIALIZATION: CompilerConfigurationKey<Boolean>
|
||||||
= CompilerConfigurationKey.create("lazy top level properties initialization")
|
= CompilerConfigurationKey.create("lazy top level properties initialization")
|
||||||
val WORKER_EXCEPTION_HANDLING: CompilerConfigurationKey<WorkerExceptionHandling> = CompilerConfigurationKey.create("unhandled exception processing in Worker.executeAfter")
|
val WORKER_EXCEPTION_HANDLING: CompilerConfigurationKey<WorkerExceptionHandling> = CompilerConfigurationKey.create("unhandled exception processing in Worker.executeAfter")
|
||||||
|
val EXTERNAL_DEPENDENCIES: CompilerConfigurationKey<String?> =
|
||||||
|
CompilerConfigurationKey.create("use external dependencies to enhance IR linker error messages")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user