Skip to content

Commit 7be36a8

Browse files
committed
build: Avoid unnecessary build script reruns in libstd
Add a FIXME to build scripts in profiler_builtins
1 parent 461c576 commit 7be36a8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/libprofiler_builtins/build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ fn main() {
99
let target = env::var("TARGET").expect("TARGET was not set");
1010
let cfg = &mut cc::Build::new();
1111

12+
// FIXME: `rerun-if-changed` directives are not currently emitted and the build script
13+
// will not rerun on changes in these source files or headers included into them.
1214
let mut profile_sources = vec![
1315
"GCDAProfiling.c",
1416
"InstrProfiling.c",

src/libstd/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::env;
22

33
fn main() {
4+
println!("cargo:rerun-if-changed=build.rs");
45
let target = env::var("TARGET").expect("TARGET was not set");
56
if target.contains("linux") {
67
if target.contains("android") {

0 commit comments

Comments
 (0)