Don't use global state for keeping incremental compilation state
Previously IC state was stored in System properties. As result parallel compilation might cause incorrect state of IC, what led to corruption of kotlin_module files. Now IC state is stored via CompilerArguments and CompilerConfiguration #KT-46038 Fixed
This commit is contained in:
@@ -319,7 +319,7 @@ class GenerateIrRuntime {
|
||||
|
||||
val cleanBuildStart = System.nanoTime()
|
||||
|
||||
withJsIC {
|
||||
withJsIC(args) {
|
||||
val buildHistoryFile = File(cachesDir, "build-history.bin")
|
||||
val compiler = IncrementalJsCompilerRunner(
|
||||
cachesDir, BuildReporter(EmptyICReporter, DoNothingBuildMetricsReporter),
|
||||
@@ -363,7 +363,7 @@ class GenerateIrRuntime {
|
||||
done,
|
||||
update
|
||||
) {
|
||||
withJsIC {
|
||||
withJsIC(args) {
|
||||
val buildHistoryFile = File(cachesDir, "build-history.bin")
|
||||
val compiler = IncrementalJsCompilerRunner(
|
||||
cachesDir, BuildReporter(EmptyICReporter, DoNothingBuildMetricsReporter),
|
||||
|
||||
Reference in New Issue
Block a user