[Native] Add '-Xexternal-dependencies' CLI parameter to pass external deps

^KT-44626
This commit is contained in:
Dmitriy Dolovov
2021-06-30 12:11:12 +03:00
parent ac387b1f26
commit 672b972b38
3 changed files with 13 additions and 0 deletions
@@ -338,6 +338,8 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
WorkerExceptionHandling.LEGACY
}
})
arguments.externalDependencies?.let { put(EXTERNAL_DEPENDENCIES, it) }
}
}
}
@@ -142,6 +142,15 @@ class K2NativeCompilerArguments : CommonCompilerArguments() {
)
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")
var fakeOverrideValidator: Boolean = false