[KLIB IC] Produce .klib file instead of directory in test
- disable sourcemaps - clean up comment
This commit is contained in:
+5
-4
@@ -2,16 +2,17 @@ package org.jetbrains.kotlin.incremental
|
|||||||
|
|
||||||
import org.jetbrains.kotlin.cli.common.arguments.K2JSCompilerArguments
|
import org.jetbrains.kotlin.cli.common.arguments.K2JSCompilerArguments
|
||||||
import org.jetbrains.kotlin.incremental.testingUtils.BuildLogFinder
|
import org.jetbrains.kotlin.incremental.testingUtils.BuildLogFinder
|
||||||
|
import org.jetbrains.kotlin.library.KLIB_FILE_EXTENSION
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
abstract class AbstractIncrementalJsKlibCompilerRunnerTest : AbstractIncrementalJsCompilerRunnerTest() {
|
abstract class AbstractIncrementalJsKlibCompilerRunnerTest : AbstractIncrementalJsCompilerRunnerTest() {
|
||||||
override fun createCompilerArguments(destinationDir: File, testDir: File): K2JSCompilerArguments =
|
override fun createCompilerArguments(destinationDir: File, testDir: File): K2JSCompilerArguments =
|
||||||
K2JSCompilerArguments().apply {
|
K2JSCompilerArguments().apply {
|
||||||
libraries = "build/js-ir-runtime/full-runtime.klib"
|
libraries = "build/js-ir-runtime/full-runtime.klib"
|
||||||
outputFile = File(destinationDir, "${testDir.name}.klib").path
|
outputFile = File(destinationDir, "${testDir.name}.$KLIB_FILE_EXTENSION").path
|
||||||
sourceMap = true
|
sourceMap = false
|
||||||
// Don't zip klib content since date on files affect the md5 checksum we compute to check whether output files identical
|
irProduceKlibDir = false
|
||||||
irProduceKlibDir = true
|
irProduceKlibFile = true
|
||||||
irOnly = true
|
irOnly = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user