CLI: improve error message if libraries are not found in Kotlin home
Also support the '-kotlin-home' argument in kotlinc-js #KT-18859 Fixed
This commit is contained in:
+7
@@ -44,6 +44,13 @@ public abstract class CommonCompilerArguments extends CommonToolArguments {
|
||||
)
|
||||
public String apiVersion;
|
||||
|
||||
@Argument(
|
||||
value = "-kotlin-home",
|
||||
valueDescription = "<path>",
|
||||
description = "Path to Kotlin compiler home directory, used for runtime libraries discovery"
|
||||
)
|
||||
public String kotlinHome;
|
||||
|
||||
@Argument(value = "-P", valueDescription = PLUGIN_OPTION_FORMAT, description = "Pass an option to a plugin")
|
||||
public String[] pluginOptions;
|
||||
|
||||
|
||||
-7
@@ -67,13 +67,6 @@ public class K2JVMCompilerArguments extends CommonCompilerArguments {
|
||||
)
|
||||
public String[] scriptTemplates;
|
||||
|
||||
@Argument(
|
||||
value = "-kotlin-home",
|
||||
valueDescription = "<path>",
|
||||
description = "Path to Kotlin compiler home directory, used for runtime libraries discovery"
|
||||
)
|
||||
public String kotlinHome;
|
||||
|
||||
@Argument(value = "-module-name", description = "Module name")
|
||||
public String moduleName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user