Skip to content

Commit 35ee6ed

Browse files
committed
Auto merge of #1934 - JohnTitor:redox, r=JohnTitor
Run build test for `x86_64-unknown-redox` Fix #1457
2 parents 17b70c1 + 6f1b951 commit 35ee6ed

File tree

4 files changed

+14
-21
lines changed

4 files changed

+14
-21
lines changed

.github/workflows/bors.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ jobs:
131131
x86_64-linux-android,
132132
x86_64-unknown-linux-gnux32,
133133
x86_64-unknown-linux-musl,
134+
# FIXME: It seems some items in `src/unix/mod.rs`
135+
# aren't defined on redox actually.
136+
# x86_64-unknown-redox,
134137
]
135138
steps:
136139
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master

ci/build.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ RUST_GT_1_24_LINUX_TARGETS="\
137137
i586-unknown-linux-musl \
138138
"
139139

140-
# FIXME: temporarirly disable the redox target
141-
# https://github.com/rust-lang/libc/issues/1457
142-
# x86_64-unknown-redox
143140
RUST_NIGHTLY_LINUX_TARGETS="\
144141
aarch64-fuchsia \
145142
armv5te-unknown-linux-gnueabi \
@@ -151,6 +148,7 @@ x86_64-fortanix-unknown-sgx \
151148
x86_64-fuchsia \
152149
x86_64-pc-windows-gnu \
153150
x86_64-unknown-linux-gnux32 \
151+
x86_64-unknown-redox \
154152
"
155153

156154
RUST_OSX_TARGETS="\
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM redoxos/redoxer
2+
3+
RUN mv /root/.redoxer /.redoxer
4+
5+
ENV PATH=$PATH:/.redoxer/toolchain/bin:/rust/bin \
6+
AR_x86_64_unknown_redox="x86_64-unknown-redox-ar" \
7+
CC_x86_64_unknown_redox="x86_64-unknown-redox-gcc" \
8+
CARGO_TARGET_X86_64_UNKNOWN_REDOX_LINKER="x86_64-unknown-redox-gcc" \
9+
CARGO_TARGET_X86_64_UNKNOWN_REDOX_RUNNER="redoxer exec --folder ."

libc-test/build.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::env;
88
fn do_cc() {
99
let target = env::var("TARGET").unwrap();
1010
if cfg!(unix) {
11-
let exclude = ["wasi"];
11+
let exclude = ["redox", "wasi"];
1212
if !exclude.iter().any(|x| target.contains(x)) {
1313
let mut cmsg = cc::Build::new();
1414

@@ -537,54 +537,37 @@ fn test_redox(target: &str) {
537537
"dirent.h",
538538
"dlfcn.h",
539539
"errno.h",
540-
"execinfo.h",
541540
"fcntl.h",
542-
"glob.h",
543541
"grp.h",
544-
"ifaddrs.h",
545-
"langinfo.h",
546542
"limits.h",
547543
"locale.h",
548-
"net/if.h",
549-
"net/if_arp.h",
550-
"net/route.h",
551544
"netdb.h",
552545
"netinet/in.h",
553546
"netinet/ip.h",
554547
"netinet/tcp.h",
555-
"netinet/udp.h",
556548
"poll.h",
557-
"pthread.h",
558549
"pwd.h",
559-
"resolv.h",
560-
"sched.h",
561550
"semaphore.h",
562551
"string.h",
563552
"strings.h",
564553
"sys/file.h",
565554
"sys/ioctl.h",
566555
"sys/mman.h",
567-
"sys/mount.h",
568556
"sys/ptrace.h",
569-
"sys/quota.h",
570557
"sys/resource.h",
571558
"sys/socket.h",
572559
"sys/stat.h",
573560
"sys/statvfs.h",
574-
"sys/sysctl.h",
575561
"sys/time.h",
576-
"sys/times.h",
577562
"sys/types.h",
578563
"sys/uio.h",
579564
"sys/un.h",
580565
"sys/utsname.h",
581566
"sys/wait.h",
582-
"syslog.h",
583567
"termios.h",
584568
"time.h",
585569
"unistd.h",
586570
"utime.h",
587-
"utmpx.h",
588571
"wchar.h",
589572
}
590573

0 commit comments

Comments
 (0)