# HG changeset patch # Parent 4ef2404d343ee660ebb3ff44ff4d8cf15e78d6fa Issue #26662: Enable .DELETE_ON_ERROR Gnu Make mode to catch errors earlier diff -r 4ef2404d343e -r 11b808ab194b Makefile.pre.in --- a/Makefile.pre.in Mon Jul 11 01:32:09 2016 +0000 +++ b/Makefile.pre.in Mon Jul 11 04:22:21 2016 +0000 @@ -1717,6 +1717,9 @@ .PHONY: smelly funny patchcheck touch altmaninstall commoninstall .PHONY: gdbhooks +# Gnu Make extension: remove targets if a command fails +.DELETE_ON_ERROR: + # IF YOU PUT ANYTHING HERE IT WILL GO AWAY # Local Variables: # mode: makefile diff -r 4ef2404d343e -r 11b808ab194b Misc/NEWS --- a/Misc/NEWS Mon Jul 11 01:32:09 2016 +0000 +++ b/Misc/NEWS Mon Jul 11 04:22:21 2016 +0000 @@ -160,6 +160,9 @@ Build ----- +- Issue #26662: Enable the Gnu Make mode that deletes target files if a + command creates the file but then fails. + - Issue #27442: Expose the Android API level that python was built against, in sysconfig.get_config_vars() as 'ANDROID_API_LEVEL'.