File tree Expand file tree Collapse file tree 5 files changed +872
-18
lines changed Expand file tree Collapse file tree 5 files changed +872
-18
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ fn src_hotfix_dir() -> PathBuf {
13
13
14
14
fn do_cc ( ) {
15
15
let target = env:: var ( "TARGET" ) . unwrap ( ) ;
16
- if cfg ! ( unix) {
16
+ if cfg ! ( unix) || target . contains ( "cygwin" ) {
17
17
let exclude = [ "redox" , "wasi" , "wali" ] ;
18
18
if !exclude. iter ( ) . any ( |x| target. contains ( x) ) {
19
19
let mut cmsg = cc:: Build :: new ( ) ;
@@ -700,6 +700,7 @@ fn test_cygwin(target: &str) {
700
700
"dlfcn.h" ,
701
701
"errno.h" ,
702
702
"fcntl.h" ,
703
+ "fnmatch.h" ,
703
704
"grp.h" ,
704
705
"iconv.h" ,
705
706
"langinfo.h" ,
@@ -710,11 +711,13 @@ fn test_cygwin(target: &str) {
710
711
"netinet/tcp.h" ,
711
712
"poll.h" ,
712
713
"pthread.h" ,
714
+ "pty.h" ,
713
715
"pwd.h" ,
714
716
"resolv.h" ,
715
717
"sched.h" ,
716
718
"semaphore.h" ,
717
719
"signal.h" ,
720
+ "spawn.h" ,
718
721
"stddef.h" ,
719
722
"stdlib.h" ,
720
723
"string.h" ,
@@ -734,6 +737,7 @@ fn test_cygwin(target: &str) {
734
737
"sys/uio.h" ,
735
738
"sys/un.h" ,
736
739
"sys/utsname.h" ,
740
+ "sys/vfs.h" ,
737
741
"syslog.h" ,
738
742
"termios.h" ,
739
743
"unistd.h" ,
@@ -853,7 +857,7 @@ fn test_cygwin(target: &str) {
853
857
}
854
858
} ) ;
855
859
856
- cfg. generate ( "../src/ lib.rs", "main.rs" ) ;
860
+ cfg. generate ( src_hotfix_dir ( ) . join ( " lib.rs") , "main.rs" ) ;
857
861
}
858
862
859
863
fn test_windows ( target : & str ) {
You can’t perform that action at this time.
0 commit comments