You can disable the DFG phase with ``` kotlin { ...
# multiplatform
j
You can disable the DFG phase with
Copy code
kotlin {
    macosX64('macos') {
        compilations.all {
            kotlinOptions {
                freeCompilerArgs += "-Xdisable-phases=Devirtualization,BuildDFG"
            }
        }
    }
}
(I had a problem too in an earlier version) To debug you could try the steps I described in another issue I had before: https://github.com/JetBrains/kotlin-native/issues/2864#issuecomment-504641546
🙏 1
r
Copy code
e: java.lang.AssertionError: Lowering DCEPhase: phases [Devirtualization] are required, but not satisfied
Trying with just
"-Xdisable-phases=BuildDFG"
but I have no idea what I’m doing
Yeah
Copy code
e: java.lang.AssertionError: Lowering Devirtualization: phases [BuildDFG] are required, but not satisfied
j
Well I guessed based on the ModuleDFGBuilder in stacktrace and issues I had before in: https://github.com/JetBrains/kotlin-native/issues/3098. If it does not work you probably need to debug deeper with the mentioned method to find actual problem.
r
I found a place where I had the same kind of thing and adding a
get()
worked, we now have a different problem, thanks