Skip to content

Commit

Permalink
📝 fix check cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Xudong-Huang committed Sep 16, 2024
1 parent e83d7e8 commit 26bc7a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const NIGHTLY: bool = true;
const NIGHTLY: bool = false;

fn main() {
println!("cargo::rustc-check-cfg=cfg(nightly)");
// Set cfg flags depending on release channel
println!("cargo:rustc-check-cfg=cfg(nightly)");
if NIGHTLY {
println!("cargo:rustc-cfg=nightly");
}
}

0 comments on commit 26bc7a4

Please sign in to comment.