Skip to content

Commit

Permalink
Add check-cfg directive (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave authored May 6, 2024
1 parent 1b0ce68 commit 79052a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use rustc_version::version;

fn main() {
println!("cargo::rustc-check-cfg=cfg(assets)");
if let Ok(asset_dir) = std::env::var("ASSET_DIR") {
println!("cargo:rustc-cfg=assets");
println!("cargo:rerun-if-changed={asset_dir}");
Expand Down

0 comments on commit 79052a7

Please sign in to comment.