Skip to content

Commit 402cb8c

Browse files
committed
Merge #662
662: WIP: Fix tier3s r=asomers This handles the low-hanging fruit. rust-lang/libc#654 needs to land and there's a bit of work necessary for the syscall and ioctl errors.
2 parents 46e77b5 + f916cb8 commit 402cb8c

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ matrix:
5050
- env: TARGET=arm-unknown-linux-gnueabi
5151
rust: 1.13.0
5252
- env: TARGET=arm-unknown-linux-musleabi
53-
rust: 1.13.0
53+
rust: 1.14.0
5454
- env: TARGET=armv7-unknown-linux-gnueabihf
5555
rust: 1.13.0
5656
- env: TARGET=i686-unknown-linux-gnu
@@ -131,7 +131,7 @@ matrix:
131131
- env: TARGET=mips64el-unknown-linux-gnuabi64
132132
rust: 1.13.0
133133
- env: TARGET=arm-unknown-linux-musleabi
134-
rust: 1.13.0
134+
rust: 1.14.0
135135
- env: TARGET=s390x-unknown-linux-gnu
136136
rust: 1.13.0
137137

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Tier 2:
7777

7878
Tier 3:
7979
* aarch64-apple-ios
80-
* arm-unknown-linux-musleabi
80+
* arm-unknown-linux-musleabi (requires Rust >= 1.14)
8181
* armv7-apple-ios
8282
* armv7s-apple-ios
8383
* i386-apple-ios

src/sys/ioctl/platform/linux.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pub const NRBITS: u32 = 8;
22
pub const TYPEBITS: u32 = 8;
33

4-
#[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64"))]
4+
#[cfg(any(target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64"))]
55
mod consts {
66
pub const NONE: u8 = 1;
77
pub const READ: u8 = 2;
@@ -12,16 +12,19 @@ mod consts {
1212

1313
#[cfg(not(any(target_arch = "powerpc",
1414
target_arch = "mips",
15+
target_arch = "mips64",
1516
target_arch = "x86",
1617
target_arch = "arm",
1718
target_arch = "x86_64",
1819
target_arch = "powerpc64",
20+
target_arch = "s390x",
1921
target_arch = "aarch64")))]
2022
use this_arch_not_supported;
2123

2224
// "Generic" ioctl protocol
2325
#[cfg(any(target_arch = "x86",
2426
target_arch = "arm",
27+
target_arch = "s390x",
2528
target_arch = "x86_64",
2629
target_arch = "aarch64"))]
2730
mod consts {

src/sys/signal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub enum Signal {
3232
SIGPIPE = libc::SIGPIPE,
3333
SIGALRM = libc::SIGALRM,
3434
SIGTERM = libc::SIGTERM,
35-
#[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), not(target_arch = "mips")))]
35+
#[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), not(any(target_arch = "mips", target_arch = "mips64"))))]
3636
SIGSTKFLT = libc::SIGSTKFLT,
3737
SIGCHLD = libc::SIGCHLD,
3838
SIGCONT = libc::SIGCONT,
@@ -58,7 +58,7 @@ pub enum Signal {
5858

5959
pub use self::Signal::*;
6060

61-
#[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), not(target_arch = "mips")))]
61+
#[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), not(any(target_arch = "mips", target_arch = "mips64"))))]
6262
const SIGNALS: [Signal; 31] = [
6363
SIGHUP,
6464
SIGINT,

0 commit comments

Comments
 (0)