From 69d39eff45fd5aa09129e424b43a429226e01f75 Mon Sep 17 00:00:00 2001 From: Agustin Borgna Date: Thu, 6 Jun 2024 11:18:09 +0100 Subject: [PATCH] chore: Declare ci_run flag in build.rs --- tket2/build.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tket2/build.rs diff --git a/tket2/build.rs b/tket2/build.rs new file mode 100644 index 00000000..f87983e4 --- /dev/null +++ b/tket2/build.rs @@ -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)"); +}