Skip to content

Commit

Permalink
Added s390x support (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-Surkar authored Nov 25, 2024
1 parent 19afbab commit 1bc60c2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ rust_arch:
- x86_64-unknown-linux-gnu # [linux64]
- aarch64-unknown-linux-gnu # [aarch64]
- powerpc64le-unknown-linux-gnu # [ppc64le]
- s390x-unknown-linux-gnu # [s390x]
- x86_64-pc-windows-msvc # [win64]
- x86_64-apple-darwin # [osx and x86_64]
- aarch64-apple-darwin # [osx and arm64]
4 changes: 3 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ source:
sha256: bb601cbc057f704d9e028a4c0fab1430d4614b9f83bb73b0013ad2c347d751d7 # [linux and x86_64]
- url: https://static.rust-lang.org/dist/{{ year }}-{{ month }}-{{ day }}/rust-nightly-powerpc64le-unknown-linux-gnu.tar.gz # [ppc64le]
sha256: e0921ee9c2c3433b11079c91177ae3dcaf15139955938ae3c4422c55c99aa69b # [ppc64le]
- url: https://static.rust-lang.org/dist/{{ year }}-{{ month }}-{{ day }}/rust-nightly-s390x-unknown-linux-gnu.tar.gz # [s390x]
sha256: 3cff7a3f4ae9a04501b5556c73fdcc500c3b43c985043217b2cc8bfacf899d3b # [s390x]

build:
number: 1
number: 2
# the distributed binaries are already relocatable
binary_relocation: False

Expand Down
2 changes: 2 additions & 0 deletions scripts/rust_activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
ARCH=`uname -p`
if [[ "${ARCH}" == 'ppc64le' ]]; then
rust_env_arch=POWERPC64LE_UNKNOWN_LINUX_GNU
elif [[ "${ARCH}" == 's390x' ]]; then
rust_env_arch=S390X_UNKNOWN_LINUX_GNU
else
rust_env_arch=X86_64_UNKNOWN_LINUX_GNU
fi
Expand Down
2 changes: 2 additions & 0 deletions scripts/rust_deactivate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
ARCH=`uname -p`
if [[ "${ARCH}" == 'ppc64le' ]]; then
rust_env_arch=POWERPC64LE_UNKNOWN_LINUX_GNU
elif [[ "${ARCH}" == 's390x' ]]; then
rust_env_arch=S390X_UNKNOWN_LINUX_GNU
else
rust_env_arch=X86_64_UNKNOWN_LINUX_GNU
fi
Expand Down

0 comments on commit 1bc60c2

Please sign in to comment.