Add compiler argument -Xfriend-paths for kotlinc-jvm

#KT-21910 Fixed
This commit is contained in:
Alexander Udalov
2018-07-25 12:58:38 +02:00
parent 8edbb10420
commit 4bd66d5aa8
10 changed files with 99 additions and 36 deletions
@@ -244,7 +244,11 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
@Argument(value = "-Xdisable-standard-script", description = "Disable standard kotlin script support")
var disableStandardScript: Boolean by FreezableVar(false)
// Paths to output directories for friend modules.
@Argument(
value = "-Xfriend-paths",
valueDescription = "<path>",
description = "Paths to output directories for friend modules (whose internals should be visible)"
)
var friendPaths: Array<String>? by FreezableVar(null)
override fun configureAnalysisFlags(collector: MessageCollector): MutableMap<AnalysisFlag<*>, Any> {