How can `kotlin.native.binary.sourceInfoType=libba...
# kotlin-native
j
How can
kotlin.native.binary.sourceInfoType=libbacktrace
be enabled for Linux and Apple targets, but disabled for Windows, since it doesn't work for MinGW?
1
Looks like I can do this in build.gradle instead of putting it in gradle.properties:
Copy code
targets.withType<KotlinNativeTarget> {
    if (konanTarget.family != Family.MINGW) {
        binaries.all {
            binaryOptions["sourceInfoType"] = "libbacktrace"
        }
    }
}
(Based on old memory manager docs.)