Skip to content

Commit

Permalink
chore: Declare ci_run flag in build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed May 17, 2024
1 parent cc7f067 commit 96821bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hugr/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//! Build script for the `hugr` crate.
fn main() {
// We use a `ci_run` RUSTFLAG to indicate that we are running a CI check,
// so we can reject debug code using some tools defined in `utils.rs`.
println!("cargo:rustc-check-cfg=cfg(ci_run)");
}

0 comments on commit 96821bc

Please sign in to comment.