From 0b662c23580420c3d6a9e457df54c17a934ebdc9 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Wed, 22 Jul 2020 19:13:02 +0300 Subject: build: Remove unnecessary `build = "build.rs"` annotations --- src/libstd/Cargo.toml | 1 - 1 file changed, 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/Cargo.toml b/src/libstd/Cargo.toml index 42403bdb1bc..f5d8119f711 100644 --- a/src/libstd/Cargo.toml +++ b/src/libstd/Cargo.toml @@ -2,7 +2,6 @@ authors = ["The Rust Project Developers"] name = "std" version = "0.0.0" -build = "build.rs" license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang/rust.git" description = "The Rust Standard Library" -- cgit 1.4.1-3-g733a5 From 7be36a86f7b7798e662d844b33bd744a136b4f60 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Wed, 22 Jul 2020 20:06:37 +0300 Subject: build: Avoid unnecessary build script reruns in libstd Add a FIXME to build scripts in profiler_builtins --- src/libprofiler_builtins/build.rs | 2 ++ src/libstd/build.rs | 1 + 2 files changed, 3 insertions(+) (limited to 'src/libstd') diff --git a/src/libprofiler_builtins/build.rs b/src/libprofiler_builtins/build.rs index bb7d59e113c..d2cb873058c 100644 --- a/src/libprofiler_builtins/build.rs +++ b/src/libprofiler_builtins/build.rs @@ -9,6 +9,8 @@ fn main() { let target = env::var("TARGET").expect("TARGET was not set"); let cfg = &mut cc::Build::new(); + // FIXME: `rerun-if-changed` directives are not currently emitted and the build script + // will not rerun on changes in these source files or headers included into them. let mut profile_sources = vec![ "GCDAProfiling.c", "InstrProfiling.c", diff --git a/src/libstd/build.rs b/src/libstd/build.rs index 58fb6fda19a..83073cc77dd 100644 --- a/src/libstd/build.rs +++ b/src/libstd/build.rs @@ -1,6 +1,7 @@ use std::env; fn main() { + println!("cargo:rerun-if-changed=build.rs"); let target = env::var("TARGET").expect("TARGET was not set"); if target.contains("linux") { if target.contains("android") { -- cgit 1.4.1-3-g733a5