Skip to content

Commit

Permalink
tests: Support check-cfg for skip_gpu_tests. (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored May 16, 2024
1 parent d71bac7 commit 8b8ddcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::env;

fn main() {
println!("cargo:rerun-if-env-changed=VELLO_CI_GPU_SUPPORT");
println!("cargo:rustc-check-cfg=cfg(skip_gpu_tests)");
if let Ok(mut value) = env::var("VELLO_CI_GPU_SUPPORT") {
value.make_ascii_lowercase();
match &*value {
Expand Down

0 comments on commit 8b8ddcf

Please sign in to comment.