[K/N] Add signposts to safepoints ^KT-62689
Disabled by default. Merge-request: KT-MR-12679 Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
b309786353
commit
4c36538646
@@ -53,6 +53,7 @@ sealed class ClangArgs(
|
||||
"REPORT_BACKTRACE_TO_IOS_CRASH_LOG".takeIf { target.supportsIosCrashLog() },
|
||||
"NEED_SMALL_BINARY".takeIf { target.needSmallBinary() },
|
||||
"SUPPORTS_GRAND_CENTRAL_DISPATCH".takeIf { target.supportsGrandCentralDispatch },
|
||||
"SUPPORTS_SIGNPOSTS".takeIf { target.supportsSignposts },
|
||||
).map { "KONAN_$it=1" }
|
||||
val otherOptions = listOfNotNull(
|
||||
"USE_ELF_SYMBOLS=1".takeIf { target.binaryFormat() == BinaryFormat.ELF },
|
||||
|
||||
@@ -165,7 +165,7 @@ fun KonanTarget.hasAddressDependencyInMemoryModel(): Boolean =
|
||||
}
|
||||
|
||||
val KonanTarget.supportsGrandCentralDispatch
|
||||
get() = when(family) {
|
||||
Family.WATCHOS, Family.IOS, Family.TVOS, Family.OSX -> true
|
||||
else -> false
|
||||
}
|
||||
get() = family.isAppleFamily
|
||||
|
||||
val KonanTarget.supportsSignposts
|
||||
get() = family.isAppleFamily
|
||||
Reference in New Issue
Block a user