Minor, rename JVMConfigurationKeys.ADD_BUILT_INS_TO_DEPENDENCIES

This commit is contained in:
Alexander Udalov
2016-11-08 10:25:02 +03:00
parent 5cd9e11f44
commit 7898e2447d
4 changed files with 6 additions and 6 deletions
@@ -58,8 +58,8 @@ public class JVMConfigurationKeys {
public static final CompilerConfigurationKey<Boolean> USE_SINGLE_MODULE =
CompilerConfigurationKey.create("combine modules for source files and binary dependencies into a single module");
public static final CompilerConfigurationKey<Boolean> ADD_BUILT_INS_TO_DEPENDENCIES =
CompilerConfigurationKey.create("add built-ins to dependencies");
public static final CompilerConfigurationKey<Boolean> ADD_BUILT_INS_FROM_COMPILER_TO_DEPENDENCIES =
CompilerConfigurationKey.create("add built-ins from the compiler jar to the dependencies of the module being resolved");
public static final CompilerConfigurationKey<JvmTarget> JVM_TARGET =
CompilerConfigurationKey.create("JVM bytecode target version");
@@ -135,7 +135,7 @@ object TopDownAnalyzerFacadeForJVM {
dependenciesContext.setDependencies(listOfNotNull(
dependenciesContext.module,
dependenciesContext.module.builtIns.builtInsModule.check {
configuration.getBoolean(JVMConfigurationKeys.ADD_BUILT_INS_TO_DEPENDENCIES)
configuration.getBoolean(JVMConfigurationKeys.ADD_BUILT_INS_FROM_COMPILER_TO_DEPENDENCIES)
}
))
dependenciesContext.initializeModuleContents(CompositePackageFragmentProvider(listOf(
@@ -182,7 +182,7 @@ object TopDownAnalyzerFacadeForJVM {
// TODO: remove dependencyModule from friends
module.setDependencies(ModuleDependenciesImpl(
listOfNotNull(module, dependencyModule, module.builtIns.builtInsModule.check {
configuration.getBoolean(JVMConfigurationKeys.ADD_BUILT_INS_TO_DEPENDENCIES)
configuration.getBoolean(JVMConfigurationKeys.ADD_BUILT_INS_FROM_COMPILER_TO_DEPENDENCIES)
}),
if (dependencyModule != null) setOf(dependencyModule) else emptySet()
))