Skip to content

Commit f14059b

Browse files
committed
Only have arches that are needed
1 parent 4642267 commit f14059b

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

src/generic.rs

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,50 +22,29 @@ pub type ssize_t = isize;
2222
// - longs can either be 32-bit or 64-bit
2323

2424
// Whether chars default to signed or unsigned is primarily determined by
25-
// architecture (windows is the main exception here).
25+
// architecture (Windows is the main exception here).
2626
cfg_if! {
2727
if #[cfg(any(target_arch = "aarch64",
2828
target_arch = "arm",
29-
target_arch = "armebv7r",
30-
target_arch = "armv5te",
31-
target_arch = "armv7",
32-
target_arch = "armv7r",
33-
target_arch = "armv7s",
3429
target_arch = "asmjs",
3530
target_arch = "wasm32",
3631
target_arch = "wasm64",
3732
target_arch = "powerpc",
3833
target_arch = "powerpc64",
39-
target_arch = "powerpc64le",
40-
target_arch = "s390x",
41-
target_arch = "thumbv6",
42-
target_arch = "thumbv6m",
43-
target_arch = "thummv7",
44-
target_arch = "thumbv7em",
45-
target_arch = "thumbv7m",
46-
target_arch = "thumbv7neon",
47-
target_arch = "tummbv8",
48-
target_arch = "thumbv8m",
49-
target_arch = "thumbv8m.main"))] {
34+
target_arch = "s390x"))] {
5035
pub type c_char = u8;
5136
pub type wchar_t = u32;
52-
} else if #[cfg(any(target_arch = "i386",
53-
target_arch = "i586",
54-
target_arch = "i686",
55-
target_arch = "x86",
37+
} else if #[cfg(any(target_arch = "x86",
5638
target_arch = "x86_64",
5739
target_arch = "mips",
5840
target_arch = "mips64",
59-
target_arch = "mips64el",
60-
target_arch = "mipsel",
41+
target_arch = "msp430",
6142
target_arch = "nvptx",
6243
target_arch = "nvptx64",
44+
target_arch = "sparc",
6345
target_arch = "sparc64",
64-
target_arch = "sparcv9",
65-
target_arch = "riscv64",
6646
target_arch = "riscv32",
67-
target_arch = "riscv32imac",
68-
target_arch = "riscv32imc"))] {
47+
target_arch = "riscv64"))] {
6948
pub type c_char = i8;
7049
pub type wchar_t = i32;
7150
}

0 commit comments

Comments
 (0)