File tree Expand file tree Collapse file tree 4 files changed +14
-21
lines changed
docker/x86_64-unknown-redox Expand file tree Collapse file tree 4 files changed +14
-21
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,9 @@ jobs:
131
131
x86_64-linux-android,
132
132
x86_64-unknown-linux-gnux32,
133
133
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,
134
137
]
135
138
steps :
136
139
- uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
Original file line number Diff line number Diff line change @@ -137,9 +137,6 @@ RUST_GT_1_24_LINUX_TARGETS="\
137
137
i586-unknown-linux-musl \
138
138
"
139
139
140
- # FIXME: temporarirly disable the redox target
141
- # https://github.com/rust-lang/libc/issues/1457
142
- # x86_64-unknown-redox
143
140
RUST_NIGHTLY_LINUX_TARGETS=" \
144
141
aarch64-fuchsia \
145
142
armv5te-unknown-linux-gnueabi \
@@ -151,6 +148,7 @@ x86_64-fortanix-unknown-sgx \
151
148
x86_64-fuchsia \
152
149
x86_64-pc-windows-gnu \
153
150
x86_64-unknown-linux-gnux32 \
151
+ x86_64-unknown-redox \
154
152
"
155
153
156
154
RUST_OSX_TARGETS=" \
Original file line number Diff line number Diff line change
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 ."
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use std::env;
8
8
fn do_cc ( ) {
9
9
let target = env:: var ( "TARGET" ) . unwrap ( ) ;
10
10
if cfg ! ( unix) {
11
- let exclude = [ "wasi" ] ;
11
+ let exclude = [ "redox" , " wasi"] ;
12
12
if !exclude. iter ( ) . any ( |x| target. contains ( x) ) {
13
13
let mut cmsg = cc:: Build :: new ( ) ;
14
14
@@ -537,54 +537,37 @@ fn test_redox(target: &str) {
537
537
"dirent.h" ,
538
538
"dlfcn.h" ,
539
539
"errno.h" ,
540
- "execinfo.h" ,
541
540
"fcntl.h" ,
542
- "glob.h" ,
543
541
"grp.h" ,
544
- "ifaddrs.h" ,
545
- "langinfo.h" ,
546
542
"limits.h" ,
547
543
"locale.h" ,
548
- "net/if.h" ,
549
- "net/if_arp.h" ,
550
- "net/route.h" ,
551
544
"netdb.h" ,
552
545
"netinet/in.h" ,
553
546
"netinet/ip.h" ,
554
547
"netinet/tcp.h" ,
555
- "netinet/udp.h" ,
556
548
"poll.h" ,
557
- "pthread.h" ,
558
549
"pwd.h" ,
559
- "resolv.h" ,
560
- "sched.h" ,
561
550
"semaphore.h" ,
562
551
"string.h" ,
563
552
"strings.h" ,
564
553
"sys/file.h" ,
565
554
"sys/ioctl.h" ,
566
555
"sys/mman.h" ,
567
- "sys/mount.h" ,
568
556
"sys/ptrace.h" ,
569
- "sys/quota.h" ,
570
557
"sys/resource.h" ,
571
558
"sys/socket.h" ,
572
559
"sys/stat.h" ,
573
560
"sys/statvfs.h" ,
574
- "sys/sysctl.h" ,
575
561
"sys/time.h" ,
576
- "sys/times.h" ,
577
562
"sys/types.h" ,
578
563
"sys/uio.h" ,
579
564
"sys/un.h" ,
580
565
"sys/utsname.h" ,
581
566
"sys/wait.h" ,
582
- "syslog.h" ,
583
567
"termios.h" ,
584
568
"time.h" ,
585
569
"unistd.h" ,
586
570
"utime.h" ,
587
- "utmpx.h" ,
588
571
"wchar.h" ,
589
572
}
590
573
You can’t perform that action at this time.
0 commit comments