blob: b26a7b26595b2c2a1a7b4e5795e16c796f053215 [file] [log] [blame] [edit]
use std::env;
fn main() {
println!("cargo:rerun-if-env-changed=VELLO_CI_GPU_SUPPORT");
if let Ok(mut value) = env::var("VELLO_CI_GPU_SUPPORT") {
value.make_ascii_lowercase();
match &*value {
"yes" | "y" => {}
"no" | "n" => {
println!("cargo:rustc-cfg=skip_gpu_tests");
}
_ => {
println!("cargo:cargo:warning=VELLO_CI_GPU_SUPPORT should be set to yes/y or no/n");
}
}
}
}