mirror of
https://github.com/servo/servo
synced 2026-05-11 09:26:59 +02:00
Avoid write atoms files when not necessary This would avoid rebuilding style component even if nothing is changed when using "mach build-geckolib --with-gecko". The `FileAvoidWrite` class is a simplified version of [the same class used in Gecko's build system](https://dxr.mozilla.org/mozilla-central/rev/dccfc624915b1bebe7975076e9b42bd46684cbc6/python/mozbuild/mozbuild/util.py#202). r? @Wafflespeanut <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14753) <!-- Reviewable:end -->