Skip to content

Commit 80e4e04

Browse files
authored
Merge pull request #66530 from swift-riscv/add-riscv64-as-supported-architecture
Add riscv64 as supported architecture on linux
2 parents cb61903 + ea330b2 commit 80e4e04

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

utils/build-script-impl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ function verify_host_is_supported() {
470470
| linux-powerpc \
471471
| linux-powerpc64 \
472472
| linux-powerpc64le \
473+
| linux-riscv64 \
473474
| linux-s390x \
474475
| macosx-x86_64 \
475476
| macosx-arm64 \

utils/swift_build_support/swift_build_support/targets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ class StdlibDeploymentTarget(object):
275275
"powerpc",
276276
"powerpc64",
277277
"powerpc64le",
278+
"riscv64",
278279
"s390x"])
279280

280281
FreeBSD = Platform("freebsd", archs=["x86_64", "arm64"])
@@ -361,6 +362,8 @@ def host_target():
361362
return StdlibDeploymentTarget.Linux.powerpc64
362363
elif machine == 'ppc64le':
363364
return StdlibDeploymentTarget.Linux.powerpc64le
365+
elif machine == 'riscv64':
366+
return StdlibDeploymentTarget.Linux.riscv64
364367
elif machine == 's390x':
365368
return StdlibDeploymentTarget.Linux.s390x
366369

0 commit comments

Comments
 (0)