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 ( ) ;
@@ -656,6 +656,7 @@ fn test_cygwin(target: &str) {
656
656
"dlfcn.h" ,
657
657
"errno.h" ,
658
658
"fcntl.h" ,
659
+ "fnmatch.h" ,
659
660
"grp.h" ,
660
661
"iconv.h" ,
661
662
"langinfo.h" ,
@@ -666,11 +667,13 @@ fn test_cygwin(target: &str) {
666
667
"netinet/tcp.h" ,
667
668
"poll.h" ,
668
669
"pthread.h" ,
670
+ "pty.h" ,
669
671
"pwd.h" ,
670
672
"resolv.h" ,
671
673
"sched.h" ,
672
674
"semaphore.h" ,
673
675
"signal.h" ,
676
+ "spawn.h" ,
674
677
"stddef.h" ,
675
678
"stdlib.h" ,
676
679
"string.h" ,
@@ -690,6 +693,7 @@ fn test_cygwin(target: &str) {
690
693
"sys/uio.h" ,
691
694
"sys/un.h" ,
692
695
"sys/utsname.h" ,
696
+ "sys/vfs.h" ,
693
697
"syslog.h" ,
694
698
"termios.h" ,
695
699
"unistd.h" ,
@@ -809,7 +813,7 @@ fn test_cygwin(target: &str) {
809
813
}
810
814
} ) ;
811
815
812
- cfg. generate ( "../src/ lib.rs", "main.rs" ) ;
816
+ cfg. generate ( src_hotfix_dir ( ) . join ( " lib.rs") , "main.rs" ) ;
813
817
}
814
818
815
819
fn test_windows ( target : & str ) {
You can’t perform that action at this time.
0 commit comments