We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26b1906 commit 70bc712Copy full SHA for 70bc712
PerformanceSuite/Sources/HangInfo.swift
@@ -80,6 +80,7 @@ public struct HangInfo: Codable {
80
/// because main binaries currently can have only arm64.
81
/// System binaries can be arm64 or arm64e.
82
private static let currentArchitecture: String? = {
83
+ #if swift(>=5.9)
84
if #available(iOS 16, *) {
85
if let archName = macho_arch_name_for_mach_header_reexported() {
86
return String(cString: archName)
@@ -90,6 +91,12 @@ public struct HangInfo: Codable {
90
91
return String(cString: name)
92
}
93
94
+ #else
95
+ let info = NXGetLocalArchInfo()
96
+ if let name = info?.pointee.name {
97
+ return String(cString: name)
98
+ }
99
+ #endif
100
return nil
101
}()
102
0 commit comments