[K/N] Don't assume all apple target support CoreSymbolication

This commit is contained in:
Pavel Kunyavskiy
2021-09-28 11:40:50 +03:00
committed by Space
parent 193effc7c4
commit 9f2035c43d
6 changed files with 22 additions and 8 deletions
@@ -31,6 +31,10 @@ fun KonanTarget.supportsMimallocAllocator(): Boolean =
fun KonanTarget.supportsLibBacktrace(): Boolean =
this.family.isAppleFamily || this.family == Family.LINUX || this.family == Family.ANDROID
fun KonanTarget.supportsCoreSymbolication(): Boolean =
this.family.isAppleFamily
fun KonanTarget.supportsThreads(): Boolean =
when(this) {
is KonanTarget.WASM32 -> false