[K/N] Setup config about path relativeness and normalization in config

This commit is contained in:
Roman Artemev
2021-11-24 19:24:41 +03:00
committed by teamcity
parent 893582fa65
commit a68eabac0a
@@ -75,6 +75,13 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
configuration.put(CommonConfigurationKeys.METADATA_VERSION, KlibMetadataVersion.INSTANCE)
}
val relativePathBases = arguments.relativePathBases
if (relativePathBases != null) {
configuration.put(CommonConfigurationKeys.KLIB_RELATIVE_PATH_BASES, relativePathBases.toList())
}
configuration.put(CommonConfigurationKeys.KLIB_NORMALIZE_ABSOLUTE_PATH, arguments.normalizeAbsolutePath)
try {
val konanConfig = KonanConfig(project, configuration)
ensureModuleName(konanConfig, environment)