You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f0f6653
Browse filesBrowse the repository at this point in the historyBrowse files
Rollup merge of #159287 - bjorn3:incr_comp_session_from_scratch, r=nnethercote
Build a new incr comp session dir from scratch every time
Rather than copying the old incr comp dir and then modifying it. This saves a copy/hardlink for files that are modified. And it removes the need for accurate work product tracking to avoid accumulating cruft, which is non-trivial. We don't accurately track the pre-LTO bitcode files for ThinLTO for example.
Part of rust-lang/compiler-team#908
"hard linking files in the incremental compilation cache failed. copying files instead. consider moving the cache directory to a file system which supports hard linking in session dir `{$path}`"
175
-
)]
176
-
pub(crate)structHardLinkFailed<'a>{
177
-
pubpath:&'aPath,
178
-
}
179
-
180
-
#[derive(Diagnostic)]
181
-
#[diag("failed to delete partly initialized session dir `{$path}`: {$err}")]
182
-
pub(crate)structDeletePartial<'a>{
183
-
pubpath:&'aPath,
184
-
puberr: std::io::Error,
185
-
}
186
-
187
172
#[derive(Diagnostic)]
188
173
#[diag("did not finalize incremental compilation session directory `{$path}`: {$err}")]
189
174
#[help("the next build will not be able to reuse work from this compilation")]
"corrupt incremental compilation artifact found at `{$path}`. This file will automatically be ignored and deleted. If you see this message repeatedly or can provoke it without manually manipulating the compiler's artifacts, please file an issue. The incremental compilation system relies on hardlinks and filesystem locks behaving correctly, and may not deal well with OS crashes, so whatever information you can provide about your filesystem or other state may be very relevant"
0 commit comments