Skip to content

Commit

Permalink
Add build script to rustc_attr because of cfg(version)
Browse files Browse the repository at this point in the history
  • Loading branch information
mibac138 committed May 3, 2020
1 parent a3ee283 commit 8a77d1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_attr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ authors = ["The Rust Project Developers"]
name = "rustc_attr"
version = "0.0.0"
edition = "2018"
build = "build.rs"

[lib]
name = "rustc_attr"
Expand Down
4 changes: 4 additions & 0 deletions src/librustc_attr/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-env-changed=CFG_VERSION");
}

0 comments on commit 8a77d1c

Please sign in to comment.