From 8a77d1ca3fc2df789157f7986ddbaf2a377ff0fe Mon Sep 17 00:00:00 2001 From: mibac138 <5672750+mibac138@users.noreply.github.com> Date: Sat, 2 May 2020 18:33:42 +0200 Subject: [PATCH] Add build script to rustc_attr because of cfg(version) --- src/librustc_attr/Cargo.toml | 1 + src/librustc_attr/build.rs | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 src/librustc_attr/build.rs diff --git a/src/librustc_attr/Cargo.toml b/src/librustc_attr/Cargo.toml index ad97ac8ffd3d2..d7af7fe6143e5 100644 --- a/src/librustc_attr/Cargo.toml +++ b/src/librustc_attr/Cargo.toml @@ -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" diff --git a/src/librustc_attr/build.rs b/src/librustc_attr/build.rs new file mode 100644 index 0000000000000..d230ba91039ad --- /dev/null +++ b/src/librustc_attr/build.rs @@ -0,0 +1,4 @@ +fn main() { + println!("cargo:rerun-if-changed=build.rs"); + println!("cargo:rerun-if-env-changed=CFG_VERSION"); +}