Skip to content

Commit

Permalink
chore: Declare ci_run flag in build.rs (#386)
Browse files Browse the repository at this point in the history
Rust 1.80 will require pre-declaring configuration flags that we want to
set via RUSTFLAGS.
See the [blog
post](https://blog.rust-lang.org/2024/05/06/check-cfg.html).

Fixes #383
  • Loading branch information
aborgna-q authored Jun 6, 2024
1 parent 50ee0fa commit 70d18ae
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 70d18ae

Please sign in to comment.