View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0015474 | CMake | CMake | public | 2015-03-25 13:18 | 2015-11-02 09:13 |
|
Reporter | Andrey Vihrov | |
Assigned To | Brad King | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | Linux | OS | | OS Version | |
Product Version | CMake 3.2.1 | |
Target Version | CMake 3.3 | Fixed in Version | CMake 3.3 | |
|
Summary | 0015474: 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 |
Tags | No tags attached. |
|
Attached Files | |
|