[cmake-developers] [CMake 0015474]: The "Unix Makefiles" generator should use .DELETE_ON_ERROR
Mantis Bug Tracker
mantis at public.kitware.com
Wed Mar 25 13:18:45 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15474
======================================================================
Reported By: Andrey Vihrov
Assigned To:
======================================================================
Project: CMake
Issue ID: 15474
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-03-25 13:18 EDT
Last Modified: 2015-03-25 13:18 EDT
======================================================================
Summary: The "Unix Makefiles" generator should use
.DELETE_ON_ERROR
Description:
The .DELETE_ON_ERROR special target in GNU Make ensures that if a command fails,
then its corresponding target will be deleted. For example, if a linker OOMs
halfway writing the final executable, then without .DELETE_ON_ERROR Make will
consider that the (corrupted) executable has been built and refuse to rebuild
it.
See also
https://www.gnu.org/software/make/manual/html_node/Special-Targets.html#index-_002eDELETE_005fON_005fERROR
and
https://www.gnu.org/software/make/manual/html_node/Errors.html#index-deletion-of-target-files
(last paragraph).
Steps to Reproduce:
* Use the "Unix Makefiles" generator with a sample CMake project
* Verify that the generated Makefiles do not contain .DELETE_ON_ERROR
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-03-25 13:18 Andrey Vihrov New Issue
======================================================================
More information about the cmake-developers
mailing list