[K/N] Setup config about path relativeness and normalization in config
This commit is contained in:
@@ -75,6 +75,13 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
|
|||||||
configuration.put(CommonConfigurationKeys.METADATA_VERSION, KlibMetadataVersion.INSTANCE)
|
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 {
|
try {
|
||||||
val konanConfig = KonanConfig(project, configuration)
|
val konanConfig = KonanConfig(project, configuration)
|
||||||
ensureModuleName(konanConfig, environment)
|
ensureModuleName(konanConfig, environment)
|
||||||
|
|||||||
Reference in New Issue
Block a user