Fix passing K2 language version to K1 multimodule tests
After splitting K1 and K2 tests some multimodule tests in K1 configuration were still running with 2.0 language version. The reason was in misconfiguration of complex multimodule projects - they don't apply override of compiler arguments. This fix added such arguments update. #KT-60589 Fixed
This commit is contained in:
committed by
Space Team
parent
f6963d04e9
commit
6ac76aa3e9
+3
@@ -457,6 +457,9 @@ abstract class AbstractIncrementalJpsTest(
|
||||
val kotlinFacetSettings = module.kotlinFacetSettings
|
||||
if (kotlinFacetSettings != null) {
|
||||
val compilerArguments = kotlinFacetSettings.compilerArguments
|
||||
if(compilerArguments != null) {
|
||||
updateCommandLineArguments(compilerArguments)
|
||||
}
|
||||
if (compilerArguments is K2MetadataCompilerArguments) {
|
||||
val out = getAbsolutePath("${module.name}/out")
|
||||
File(out).mkdirs()
|
||||
|
||||
Reference in New Issue
Block a user