Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile.include: Assign git description variable once.
By changing RELSTR= into RELSTR:= we force Make to evaluate the Git version string only during Makefile read, and not on every single build command execution. The reduction in file system I/O cut the time to build examples/er-rest-example on my development machine by a significant amount, see below. Core i7 notebook with ext4 file system on an SSD (building for TARGET=mulle): "RELSTR=" make 19.70s user 1.07s system 82% cpu 25.291 total "RELSTR:=" make 11.81s user 1.27s system 79% cpu 16.499 total Signed-off-by: Joakim Gebart <[email protected]>
- Loading branch information