Lines Matching refs:var
3 use std::env::var;
26 let arch = var("CARGO_CFG_TARGET_ARCH").unwrap();
29 let os_name = var("CARGO_CFG_TARGET_OS").unwrap();
30 let pointer_width = var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap();
31 let endian = var("CARGO_CFG_TARGET_ENDIAN").unwrap();
43 let feature_use_libc = var("CARGO_FEATURE_USE_LIBC").is_ok();
49 let feature_rustc_dep_of_std = var("CARGO_FEATURE_RUSTC_DEP_OF_STD").is_ok();
53 let cfg_use_libc = var("CARGO_CFG_RUSTIX_USE_LIBC").is_ok();
58 let rustix_use_experimental_asm = var("CARGO_CFG_RUSTIX_USE_EXPERIMENTAL_ASM").is_ok();
62 let miri = var("CARGO_CFG_MIRI").is_ok();
116 let profile = var("PROFILE").unwrap();
132 let out_dir = var("OUT_DIR").unwrap();
174 /// Test whether the rustc at `var("RUSTC")` supports the given feature.
182 /// Test whether the rustc at `var("RUSTC")` can compile the given code.
186 let out_dir = var("OUT_DIR").unwrap();
187 let rustc = var("RUSTC").unwrap();
188 let target = var("TARGET").unwrap();
190 let mut cmd = if let Ok(wrapper) = var("CARGO_RUSTC_WRAPPER") {
207 if let Ok(rustflags) = var("CARGO_ENCODED_RUSTFLAGS") {