Various fixes for HelloWorld. (#27)

This commit is contained in:
Nikolay Igotti
2016-11-01 15:33:41 +03:00
committed by GitHub
parent b142d39dbc
commit 7eeb2d3046
10 changed files with 70 additions and 18 deletions
@@ -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;
}