File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed
ci/docker/s390x-unknown-linux-gnu Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ jobs:
139
139
- i586-unknown-linux-gnu
140
140
- i686-unknown-linux-gnu
141
141
- powerpc64-unknown-linux-gnu
142
+ - s390x-unknown-linux-gnu
142
143
- x86_64-pc-windows-gnu
143
144
- x86_64-unknown-linux-gnu
144
145
- x86_64-unknown-linux-musl
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:20.04
2
+
3
+ RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ gcc \
5
+ ca-certificates \
6
+ libc6-dev \
7
+ gcc-s390x-linux-gnu \
8
+ libc6-dev-s390x-cross \
9
+ qemu-user \
10
+ # There seems to be a bug in processing mixed-architecture
11
+ # ld.so.cache files that causes crashes in some cases. Work
12
+ # around this by simply deleting the cache for now.
13
+ && rm /etc/ld.so.cache
14
+
15
+ ENV CARGO_TARGET_S390X_UNKNOWN_LINUX_GNU_LINKER=s390x-linux-gnu-gcc \
16
+ CARGO_TARGET_S390X_UNKNOWN_LINUX_GNU_RUNNER="qemu-s390x -L /usr/s390x-linux-gnu" \
17
+ CC=s390x-linux-gnu-gcc
Original file line number Diff line number Diff line change @@ -14,7 +14,12 @@ fn main() {
14
14
// so just skip these for CI. No other reason this can't run on those
15
15
// platforms though.
16
16
// Miri does not have support for re-execing a file
17
- if cfg ! ( unix) && ( cfg ! ( target_arch = "arm" ) || cfg ! ( target_arch = "aarch64" ) ) || cfg ! ( miri) {
17
+ if cfg ! ( unix)
18
+ && ( cfg ! ( target_arch = "arm" )
19
+ || cfg ! ( target_arch = "aarch64" )
20
+ || cfg ! ( target_arch = "s390x" ) )
21
+ || cfg ! ( miri)
22
+ {
18
23
println ! ( "test result: ok" ) ;
19
24
return ;
20
25
}
You can’t perform that action at this time.
0 commit comments