Skip to content

Commit

Permalink
Merge pull request #66530 from swift-riscv/add-riscv64-as-supported-a…
Browse files Browse the repository at this point in the history
…rchitecture

Add riscv64 as supported architecture on linux
  • Loading branch information
shahmishal committed Jul 3, 2023
2 parents cb61903 + ea330b2 commit 80e4e04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions utils/build-script-impl
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ function verify_host_is_supported() {
| linux-powerpc \
| linux-powerpc64 \
| linux-powerpc64le \
| linux-riscv64 \
| linux-s390x \
| macosx-x86_64 \
| macosx-arm64 \
Expand Down
3 changes: 3 additions & 0 deletions utils/swift_build_support/swift_build_support/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ class StdlibDeploymentTarget(object):
"powerpc",
"powerpc64",
"powerpc64le",
"riscv64",
"s390x"])

FreeBSD = Platform("freebsd", archs=["x86_64", "arm64"])
Expand Down Expand Up @@ -361,6 +362,8 @@ def host_target():
return StdlibDeploymentTarget.Linux.powerpc64
elif machine == 'ppc64le':
return StdlibDeploymentTarget.Linux.powerpc64le
elif machine == 'riscv64':
return StdlibDeploymentTarget.Linux.riscv64
elif machine == 's390x':
return StdlibDeploymentTarget.Linux.s390x

Expand Down

0 comments on commit 80e4e04

Please sign in to comment.