[K/N] Add libbacktrace

This commit is contained in:
Pavel Kunyavskiy
2021-07-20 11:14:58 +03:00
committed by Space
parent a5f3b087a4
commit 91dd9dc9b0
22 changed files with 13141 additions and 1 deletions
@@ -28,6 +28,9 @@ fun KonanTarget.supportsMimallocAllocator(): Boolean =
else -> false // watchOS/tvOS/android_x86/android_arm32 aren't tested; linux_mips32/linux_mipsel32 need linking with libatomic.
}
fun KonanTarget.supportsLibBacktrace(): Boolean =
this.family.isAppleFamily || this.family == Family.LINUX || this.family == Family.ANDROID
fun KonanTarget.supportsThreads(): Boolean =
when(this) {
is KonanTarget.WASM32 -> false