"mach clobber" does not remove "incremental/" files - objdir contains very old Rust build artifact
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
People
(Reporter: robwu, Unassigned)
References
Details
The objdir of my debug builds was getting large (~50GB), so I ran ./mach clobber
with the intent to clean it up. Surprisingly, only half of it went away. The only remaining part was the "incremental" directory, which seems to be related to Rust compilation:
$ du -hs objdir-debug/x86_64-apple-darwin/debug/incremental/
26G objdir-debug/x86_64-apple-darwin/debug/incremental/
The exclusion of Rust code seems intentional (source code) and was introduced in bug 1551368. The implementation simply skips the "incremental/" directory altogether when looking for files to delete. I think that at the very least, obsolete entries unrelated to the current tree should be purged.
Comment 1•2 months ago
|
||
That is an intentional tradeoff, as you noted. You can use ./mach clobber --full
for a fuller purge.
obsolete entries unrelated to the current tree should be purged.
The build system can't know what they are, unfortunately.
Description
•