Files
reims-vgpu/xtask
Anees Iqbal 54591f34ca 🐎 Write a dist file only where its bytes changed
cargo xtask dist wrote every file of its tree on each run, the archive and
the header included, so every make qemu recompiled reims-graphics-pci.c and
relinked the 358 MB qemu-system-x86_64 even when nothing had changed.

Every file dist writes now goes through one helper, replace_if_changed: a
file that already holds the bytes keeps its mtime and gets only its mode;
one that changed is removed and written anew, as install did. For the bytes
to come out the same, the archive is packed in the target dir's
dist-localized with zero dates (ar's D on Linux, libtool -D on macOS) and
installed from there, and on macOS the dylib is renamed and signed on a copy
there before it is installed.
2026-11-13 09:49:33 -08:00
..