diff options
author | Brad King <brad.king@kitware.com> | 2015-03-30 16:32:26 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-03-30 16:35:48 -0400 |
commit | 4adf1dad2a6e462364bae81030c928599d11c24f (patch) | |
tree | c8439c0f37554c41374373117c8ea1f20cf40381 /Source/cmGlobalBorlandMakefileGenerator.h | |
parent | c1f8c6cdf94d650df1bd8ec847ae7ac453550978 (diff) | |
download | cmake-4adf1dad2a6e462364bae81030c928599d11c24f.tar.gz |
Makefile: Tell GNU make to delete rule outputs on error (#15474)
Add .DELETE_ON_ERROR to the "build.make" files that contain the actual
build rules that generate files. This tells GNU make to delete the
output of a rule if the recipe modifies the output but returns failure.
This is particularly useful for custom commands that use shell
redirection to produce a file.
Do not add .DELETE_ON_ERROR for Borland or Watcom make tools because
they may not tolerate it and would not honor it anyway. Other make
tools that do not understand .DELETE_ON_ERROR will not be hurt.
Suggested-by: Andrey Vihrov <andrey.vihrov@gmail.com>
Diffstat (limited to 'Source/cmGlobalBorlandMakefileGenerator.h')
-rw-r--r-- | Source/cmGlobalBorlandMakefileGenerator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalBorlandMakefileGenerator.h b/Source/cmGlobalBorlandMakefileGenerator.h index 120d2f8075..005f0d694c 100644 --- a/Source/cmGlobalBorlandMakefileGenerator.h +++ b/Source/cmGlobalBorlandMakefileGenerator.h @@ -46,6 +46,7 @@ public: cmMakefile *, bool optional); virtual bool AllowNotParallel() const { return false; } + virtual bool AllowDeleteOnError() const { return false; } }; #endif |