Add cli argumens for FIR "tight" IC and LightTree usage

This commit is contained in:
Ilya Chernikov
2022-01-10 16:23:38 +01:00
committed by teamcity
parent 9e32188938
commit a239f02a30
5 changed files with 18 additions and 2 deletions
@@ -124,7 +124,7 @@ class K2JVMCompiler : CLICompiler<K2JVMCompilerArguments>() {
val chunk = moduleChunk.modules
configuration.configureSourceRoots(chunk, buildFile)
if (configuration.getBoolean(CommonConfigurationKeys.USE_FIR)) {
if (configuration.getBoolean(CommonConfigurationKeys.USE_FIR) && arguments.useFirLT /* TODO: consider storing in the configuration instead of using args here directly */) {
val projectEnvironment =
createProjectEnvironment(configuration, rootDisposable, EnvironmentConfigFiles.JVM_CONFIG_FILES, messageCollector)