https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
j

Jeff Lockhart

02/08/2023, 3:34 AM
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.)
14 Views