@@ -59,6 +59,7 @@ private fun readV1Config(element: Element): KotlinFacetSettings {
|
||||
val jsArgumentsElement = compilerInfoElement?.getOptionBody("k2jsCompilerArguments")
|
||||
|
||||
val compilerArguments = targetPlatform.createCompilerArguments()
|
||||
compilerArguments.freeArgs = ArrayList()
|
||||
|
||||
commonArgumentsElement?.let { XmlSerializer.deserializeInto(compilerArguments, it) }
|
||||
when (compilerArguments) {
|
||||
|
||||
+1
-1
@@ -138,7 +138,7 @@ abstract class AbstractJsLookupTrackerTest : AbstractLookupTrackerTest() {
|
||||
val args = K2JSCompilerArguments().apply {
|
||||
outputFile = File(outDir, "out.js").canonicalPath
|
||||
reportOutputFiles = true
|
||||
freeArgs.addAll(filesToCompile.map { it.canonicalPath })
|
||||
freeArgs = filesToCompile.map { it.canonicalPath }
|
||||
}
|
||||
return runJSCompiler(args, env)
|
||||
}
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ abstract class AbstractJsProtoComparisonTest : AbstractProtoComparisonTest<Proto
|
||||
outputFile = File(outputDir, "out.js").canonicalPath
|
||||
metaInfo = true
|
||||
main = K2JsArgumentConstants.NO_CALL
|
||||
freeArgs.addAll(ktFiles)
|
||||
freeArgs = ktFiles
|
||||
}
|
||||
|
||||
val env = createTestingCompilerEnvironment(messageCollector, outputItemsCollector, services)
|
||||
|
||||
Reference in New Issue
Block a user