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 Jun 6, 2024
1 parent 50ee0fa commit 69d39ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tket2/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//! Build script for the `tket2` 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 69d39ef

Please sign in to comment.