Various fixes for HelloWorld. (#27)
This commit is contained in:
@@ -50,6 +50,8 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
|
||||
configuration.put(CommonConfigurationKeys.MODULE_NAME,
|
||||
JvmAbi.DEFAULT_MODULE_NAME)
|
||||
configuration.addKotlinSourceRoots(arguments.freeArgs)
|
||||
// TODO: add to source set, once we know how to not compile them.
|
||||
configuration.addKotlinSourceRoots(arguments.headers.asList())
|
||||
val environment = KotlinCoreEnvironment.createForProduction(rootDisposable,
|
||||
configuration, Arrays.asList<String>("extensions/common.xml"))
|
||||
|
||||
|
||||
@@ -14,4 +14,8 @@ public class K2NativeCompilerArguments extends CommonCompilerArguments {
|
||||
@ValueDescription("<path>")
|
||||
public String runtimeFile;
|
||||
|
||||
@Argument(value = "headers", description = "Header files used for compilation")
|
||||
@ValueDescription("<path>")
|
||||
public String[] headers;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user