Write updated loaddefs to a temporary file and rename into place.
In a parallel build, byte compilation can be running at the same times as loaddefs.el is being regenerated. However, in a CANNOT_DUMP build, loaddefs.el is read at startup and must always be in a usable state. * lisp/Makefile.in ($(lisp)/loaddefs.el): Write generated output to loaddefs.el.new and then rename it to loaddefs.el.
Showing with 5 additions and 1 deletion