Closed Bug 1936134 Opened 2 months ago Closed 2 months ago

"mach clobber" does not remove "incremental/" files - objdir contains very old Rust build artifact

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

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.

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.

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.