blob: 6e81f57f16490289ad557ae870da39f3a30d3dde [file] [log] [blame] [edit]
// Copyright 2024 the Vello Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT
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");
}
}
}
}