File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 9
9
10
10
@_fixed_layout
11
11
public struct CGFloat {
12
- #if arch(i386) || arch(arm)
12
+ #if arch(i386) || arch(arm) || arch(powerpc)
13
13
/// The native type used to store the CGFloat, which is Float on
14
14
/// 32-bit architectures and Double on 64-bit architectures.
15
15
public typealias NativeType = Float
16
- #elseif arch(x86_64) || arch(arm64) || arch(s390x)
16
+ #elseif arch(x86_64) || arch(arm64) || arch(s390x) || arch(powerpc64) || arch(powerpc64le)
17
17
/// The native type used to store the CGFloat, which is Float on
18
18
/// 32-bit architectures and Double on 64-bit architectures.
19
19
public typealias NativeType = Double
@@ -170,9 +170,9 @@ extension CGFloat : BinaryFloatingPoint {
170
170
171
171
@_transparent
172
172
public init ( bitPattern: UInt ) {
173
- #if arch(i386) || arch(arm)
173
+ #if arch(i386) || arch(arm) || arch(powerpc)
174
174
native = NativeType ( bitPattern: UInt32 ( bitPattern) )
175
- #elseif arch(x86_64) || arch(arm64) || arch(s390x)
175
+ #elseif arch(x86_64) || arch(arm64) || arch(s390x) || arch(powerpc64) || arch(powerpc64le)
176
176
native = NativeType ( bitPattern: UInt64 ( bitPattern) )
177
177
#endif
178
178
}
Original file line number Diff line number Diff line change 81
81
]
82
82
83
83
triple = Configuration .current .target .triple
84
- if triple == "x86_64 -linux-gnu" or triple == "armv7-none-linux-androideabi" or triple == "s390x-linux-gnu " :
84
+ if triple . endswith ( " -linux-gnu") or triple == "armv7-none-linux-androideabi" :
85
85
foundation .LDFLAGS += '-lcurl '
86
86
87
87
if triple == "armv7-none-linux-androideabi" :
Original file line number Diff line number Diff line change @@ -85,11 +85,11 @@ def to_string(value):
85
85
if value == ArchType .msp430 :
86
86
return "msp430"
87
87
if value == ArchType .ppc :
88
- return "ppc "
88
+ return "powerpc "
89
89
if value == ArchType .ppc64 :
90
- return "ppc64 "
90
+ return "powerpc64 "
91
91
if value == ArchType .ppc64le :
92
- return "ppc64le "
92
+ return "powerpc64le "
93
93
if value == ArchType .r600 :
94
94
return "r600"
95
95
if value == ArchType .amdgcn :
@@ -176,11 +176,11 @@ def from_string(string):
176
176
return ArchType .mips64el
177
177
if string == "msp430" :
178
178
return ArchType .msp430
179
- if string == "ppc" :
179
+ if string == "ppc" or string == "powerpc" :
180
180
return ArchType .ppc
181
- if string == "ppc64" :
181
+ if string == "ppc64" or string == "powerpc64" :
182
182
return ArchType .ppc64
183
- if string == "ppc64le" :
183
+ if string == "ppc64le" or string == "powerpc64le" :
184
184
return ArchType .ppc64le
185
185
if string == "r600" :
186
186
return ArchType .r600
You can’t perform that action at this time.
0 commit comments