2 ms·
The recipes that I'm concerned about will show this issue 100% of the time if the generating command touches the output file and then fails. GNU Make offers us
by kazinator 3y ago
The recipes that I'm concerned about will show this issue 100% of the time if the generating command touches the output file and then fails.
GNU Make offers us a blanket solution for such cases and so we should take advantage of it.
That solution doesn't nail all the the corner cases like being killed by uncatchable signals or kernels crashing.
That issue affects not only the recipes I'm presently concerned about but potentially all recipes. Even those which ensure that the file is gone when the tool fails.
Fixing that problem likely requires changing every single recipe in every Makefile, except for those which invoke a tool that already does an atomic create or update, or reasonably simulated facsimile thereof.