We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b91ceb8 commit 1c3fe15Copy full SHA for 1c3fe15
src/bootstrap/src/core/build_steps/dist.rs
@@ -2048,6 +2048,13 @@ fn install_llvm_file(
2048
let link = t!(fs::read_link(source));
2049
let mut linker_script = t!(fs::File::create(full_dest));
2050
t!(write!(linker_script, "INPUT({})\n", link.display()));
2051
+
2052
+ // We also want the linker script to have the same mtime as the source, otherwise it
2053
+ // can trigger rebuilds.
2054
+ let meta = t!(fs::metadata(source));
2055
+ if let Ok(mtime) = meta.modified() {
2056
+ t!(linker_script.set_modified(mtime));
2057
+ }
2058
}
2059
} else {
2060
builder.install(&source, destination, 0o644);
0 commit comments