Lines Matching refs:target

16     let target = env::var("TARGET").unwrap();  in do_cc()  localVariable
17 if cfg!(unix) || target.contains("cygwin") { in do_cc()
19 if !exclude.iter().any(|x| target.contains(x)) { in do_cc()
24 if target.contains("solaris") || target.contains("illumos") { in do_cc()
30 if (target.contains("linux") && !target.contains("wasm32")) in do_cc()
31 || target.contains("android") in do_cc()
32 || target.contains("emscripten") in do_cc()
33 || target.contains("fuchsia") in do_cc()
34 || target.contains("bsd") in do_cc()
35 || target.contains("cygwin") in do_cc()
40 if target.contains("android") || (target.contains("linux") && !target.contains("wasm32")) { in do_cc()
43 if (target.contains("linux") && !target.contains("wasm32")) in do_cc()
44 || target.contains("l4re") in do_cc()
45 || target.contains("android") in do_cc()
46 || target.contains("emscripten") in do_cc()
47 || target.contains("solaris") in do_cc()
48 || target.contains("illumos") in do_cc()
218 fn test_apple(target: &str) { in test_apple()
219 assert!(target.contains("apple")); in test_apple()
220 let x86_64 = target.contains("x86_64"); in test_apple()
221 let i686 = target.contains("i686"); in test_apple()
510 fn test_openbsd(target: &str) { in test_openbsd()
511 assert!(target.contains("openbsd")); in test_openbsd()
516 let x86_64 = target.contains("x86_64"); in test_openbsd()
700 fn test_cygwin(target: &str) { in test_cygwin()
701 assert!(target.contains("cygwin")); in test_cygwin()
872 fn test_windows(target: &str) { in test_windows()
873 assert!(target.contains("windows")); in test_windows()
874 let gnu = target.contains("gnu"); in test_windows()
875 let i686 = target.contains("i686"); in test_windows()
878 if target.contains("msvc") { in test_windows()
1001 fn test_redox(target: &str) { in test_redox()
1002 assert!(target.contains("redox")); in test_redox()
1051 fn test_solarish(target: &str) { in test_solarish()
1052 let is_solaris = target.contains("solaris"); in test_solarish()
1053 let is_illumos = target.contains("illumos"); in test_solarish()
1341 fn test_netbsd(target: &str) { in test_netbsd()
1342 assert!(target.contains("netbsd")); in test_netbsd()
1557 fn test_dragonflybsd(target: &str) { in test_dragonflybsd()
1558 assert!(target.contains("dragonfly")); in test_dragonflybsd()
1782 fn test_wasi(target: &str) { in test_wasi()
1783 assert!(target.contains("wasi")); in test_wasi()
1784 let p2 = target.contains("wasip2"); in test_wasi()
1889 fn test_android(target: &str) { in test_android()
1890 assert!(target.contains("android")); in test_android()
1891 let target_pointer_width = match target { in test_android()
1896 let x86 = target.contains("i686") || target.contains("x86_64"); in test_android()
1897 let aarch64 = target.contains("aarch64"); in test_android()
2395 test_linux_like_apis(target); in test_android()
2398 fn test_freebsd(target: &str) { in test_freebsd()
2399 assert!(target.contains("freebsd")); in test_freebsd()
3064 if target.contains("arm") { in test_freebsd()
3075 fn test_emscripten(target: &str) { in test_emscripten()
3076 assert!(target.contains("emscripten")); in test_emscripten()
3315 fn test_neutrino(target: &str) { in test_neutrino()
3316 assert!(target.contains("nto-qnx")); in test_neutrino()
3319 if target.ends_with("_iosock") { in test_neutrino()
3588 fn test_vxworks(target: &str) { in test_vxworks()
3589 assert!(target.contains("vxworks")); in test_vxworks()
3694 fn config_gnu_bits(target: &str, cfg: &mut ctest::TestGenerator) { in config_gnu_bits()
3696 if target.contains("gnu") in config_gnu_bits()
3697 && target.contains("linux") in config_gnu_bits()
3698 && !target.ends_with("x32") in config_gnu_bits()
3699 && !target.contains("riscv32") in config_gnu_bits()
3729 fn test_linux(target: &str) { in test_linux()
3730 assert!(target.contains("linux")); in test_linux()
3733 let gnu = target.contains("gnu"); in test_linux()
3734 let musl = target.contains("musl") || target.contains("ohos"); in test_linux()
3735 let uclibc = target.contains("uclibc"); in test_linux()
3744 let arm = target.contains("arm"); in test_linux()
3745 let aarch64 = target.contains("aarch64"); in test_linux()
3746 let i686 = target.contains("i686"); in test_linux()
3747 let ppc = target.contains("powerpc"); in test_linux()
3748 let ppc64 = target.contains("powerpc64"); in test_linux()
3749 let s390x = target.contains("s390x"); in test_linux()
3750 let sparc64 = target.contains("sparc64"); in test_linux()
3751 let x32 = target.contains("x32"); in test_linux()
3752 let x86_32 = target.contains("i686"); in test_linux()
3753 let x86_64 = target.contains("x86_64"); in test_linux()
3754 let gnueabihf = target.contains("gnueabihf"); in test_linux()
3755 let x86_64_gnux32 = target.contains("gnux32") && x86_64; in test_linux()
3756 let riscv64 = target.contains("riscv64"); in test_linux()
3757 let loongarch64 = target.contains("loongarch64"); in test_linux()
3758 let wasm32 = target.contains("wasm32"); in test_linux()
3759 let uclibc = target.contains("uclibc"); in test_linux()
3774 config_gnu_bits(target, &mut cfg); in test_linux()
4998 test_linux_like_apis(target); in test_linux()
5003 fn test_linux_like_apis(target: &str) { in test_linux_like_apis()
5004 let gnu = target.contains("gnu"); in test_linux_like_apis()
5005 let musl = target.contains("musl") || target.contains("ohos"); in test_linux_like_apis()
5006 let linux = target.contains("linux"); in test_linux_like_apis()
5007 let wali = target.contains("linux") && target.contains("wasm32"); in test_linux_like_apis()
5008 let emscripten = target.contains("emscripten"); in test_linux_like_apis()
5009 let android = target.contains("android"); in test_linux_like_apis()
5015 config_gnu_bits(target, &mut cfg); in test_linux_like_apis()
5032 config_gnu_bits(target, &mut cfg); in test_linux_like_apis()
5062 config_gnu_bits(target, &mut cfg); in test_linux_like_apis()
5087 config_gnu_bits(target, &mut cfg); in test_linux_like_apis()
5119 config_gnu_bits(target, &mut cfg); in test_linux_like_apis()
5139 config_gnu_bits(target, &mut cfg); in test_linux_like_apis()
5181 fn test_haiku(target: &str) { in test_haiku()
5182 assert!(target.contains("haiku")); in test_haiku()
5517 fn test_aix(target: &str) { in test_aix()
5518 assert!(target.contains("aix")); in test_aix()