Skip to content

Commit 10fc7e2

Browse files
Version 1.1.3
- Fixed compiling for non-mac platforms
1 parent c3f1b53 commit 10fc7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftCPUDetect/SwiftCPUDetect.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public enum CpuArchitecture: String, Codable, Equatable, CaseIterable{
128128
if MEM.status == nil{
129129
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64]
130130

131-
if #available(OSX 11.0, *) {
131+
if #available(OSX 11.0, iOS 14.0, *, watchOS 7.0, tvOS 14.0) {
132132
supportedArchs[NSBundleExecutableArchitectureARM64] = arm64
133133
}else{
134134
supportedArchs[16777228] = arm64

0 commit comments

Comments
 (0)