qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
17.48k stars 37.73k forks source link

[CLI] Only generate files if contents change. #24038

Open tzarc opened 3 days ago

tzarc commented 3 days ago

Description

Compilation tends to do everything each time -- we're constantly generating files as a precursor to a build, which updates mtimes and the like.

If regenerating the file doesn't change the content, then don't perform the write.

Doing rebuilds of the same board are significantly faster as a result.

Types of Changes

Checklist