Skip to content

Commit e9688dc

Browse files
authored
Merge pull request #3466 from ruscur/powerpc64-fixes
powerpc64{le} build and test fixes
2 parents b63bddd + 9af6321 commit e9688dc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

utils/swift_build_support/swift_build_support/targets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ class StdlibDeploymentTarget(object):
116116
"armv6",
117117
"armv7",
118118
"aarch64",
119-
"ppc64",
120-
"ppc64le",
119+
"powerpc64",
120+
"powerpc64le",
121121
"s390x"])
122122

123123
FreeBSD = Platform("freebsd", archs=["x86_64"])
@@ -163,9 +163,9 @@ def host_target():
163163
elif machine == 'aarch64':
164164
return StdlibDeploymentTarget.Linux.aarch64
165165
elif machine == 'ppc64':
166-
return StdlibDeploymentTarget.Linux.ppc64
166+
return StdlibDeploymentTarget.Linux.powerpc64
167167
elif machine == 'ppc64le':
168-
return StdlibDeploymentTarget.Linux.ppc64le
168+
return StdlibDeploymentTarget.Linux.powerpc64le
169169
elif machine == 's390x':
170170
return StdlibDeploymentTarget.Linux.s390x
171171

validation-test/stdlib/Glibc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ GlibcTestSuite.test("errno") {
2727
var GlibcIoctlConstants = TestSuite("GlibcIoctlConstants")
2828

2929
GlibcIoctlConstants.test("tty ioctl constants availability") {
30-
let aConstant = TIOCGWINSZ
30+
let aConstant = TIOCSTI
3131
}
3232

3333
runAllTests()

validation-test/stdlib/Prototypes/PersistentVector.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ struct _${name}Bitmap {
198198
% if underlyingType == 'UInt':
199199
#if arch(i386) || arch(arm)
200200
return Int(Builtin.int_ctpop_Int32(_bits._value))
201-
#elseif arch(x86_64) || arch(arm64)
201+
#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le)
202202
return Int(Builtin.int_ctpop_Int64(_bits._value))
203203
#endif
204204
% elif underlyingType == 'UInt32':

0 commit comments

Comments
 (0)