build: Avoid unnecessary build script reruns in libstd

Add a FIXME to build scripts in profiler_builtins
This commit is contained in:
Vadim Petrochenkov 2020-07-22 20:06:37 +03:00
parent 461c576457
commit 7be36a86f7
2 changed files with 3 additions and 0 deletions

View File

@ -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",

View File

@ -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") {