Skip to contentSkip to conversation

perf: makefile: add .DELETE_ON_ERROR special target

PATCH Applied Changbin Du 3 participants 3 messages Dec 17, 2022 – Dec 20, 2022 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf: makefile: add .DELETE_ON_ERROR special target

As kbuild, this adds .DELETE_ON_ERROR special target to clean up partially updated files on error. A known issue is the empty vmlinux.h generted by bpftool if it failed to dump btf info.

Cc Andrii Nakryiko <[email protected]>
---
 tools/perf/Makefile.perf | 3 +++
 1 file changed, 3 insertions(+)
tools/perf/Makefile.perf +3 -0
index 9b7886ce0674..13e7d26e77f0 100644
@@ -1151,3 +1151,6 @@ FORCE:
 .PHONY: archheaders
 
 endif # force_fixdep
+
+# Delete partially updated (corrupted) files on error
+.DELETE_ON_ERROR:
Signature · 1 line
2.37.2
maintainer Applied
#2 lore raw

Em Tue, Dec 20, 2022 at 09:57:57AM +0800, Leo Yan escreveu:

Quoted 9 lines · Changbin Du
Quoted 6 lines

As kbuild, this adds .DELETE_ON_ERROR special target to clean up partially updated files on error. A known issue is the empty vmlinux.h generted by bpftool if it failed to dump btf info.

Cc Andrii Nakryiko <[email protected]>

Thanks, applied.

- Arnaldo