[PATCH] kbuild: clean `*.long-type-*.txt` files

Joel Kamminga posted 1 patch 1 week, 2 days ago
There is a newer version of this series
Makefile | 1 +
1 file changed, 1 insertion(+)
[PATCH] kbuild: clean `*.long-type-*.txt` files
Posted by Joel Kamminga 1 week, 2 days ago
This cleans up files generated by rustc compiler in the case of an
error containing an excessively long type name that doesn't fit in
a single line. Such types appear relatively frequently so the risk
of generating these files certainly exists. These files are purely
compiler artifacts and are not created intentionally by the build
system. They should be added to the `clean` target to stop from
cluttering up the source tree.

Signed-off-by: Joel Kamminga <contact@jkam.dev>
Reported-by: Miguel Ojeda <ojeda@kernel.org>
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index 9f59598d3a08..3a265e7e3347 100644
--- a/Makefile
+++ b/Makefile
@@ -2164,6 +2164,7 @@ clean: $(clean-dirs)
 		-o -name '*.c.[012]*.*' \
 		-o -name '*.ll' \
 		-o -name '*.gcno' \
+		-o -name '*.long-type-*.txt' \
 		\) -type f -print \
 		-o -name '.tmp_*' -print \
 		| xargs rm -rf
-- 
2.54.0