Skip to content

Commit 025fd4b

Browse files
LobsterRoastojeda
authored andcommitted
kbuild: rust: clean *.long-type-*.txt files
When rustc prints an error containing a long type that doesn't fit in a line, it will write the whole thing in a .txt file -- see commit 420dd18 (".gitignore: ignore rustc long type txt files") for more details. These files are purely compiler artifacts and are not created intentionally by the build system. Thus add them to the `clean` target to stop them from cluttering up the source tree. Suggested-by: Miguel Ojeda <ojeda@kernel.org> Link: #1236 Signed-off-by: Joel Kamminga <contact@jkam.dev> Acked-by: Nathan Chancellor <nathan@kernel.org> Link: https://patch.msgid.link/20260530184944.10459-1-contact@jkam.dev [ Reworded and linked to the previous related commit. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 3473e0a commit 025fd4b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2164,6 +2164,7 @@ clean: $(clean-dirs)
21642164
-o -name '*.c.[012]*.*' \
21652165
-o -name '*.ll' \
21662166
-o -name '*.gcno' \
2167+
-o -name '*.long-type-*.txt' \
21672168
\) -type f -print \
21682169
-o -name '.tmp_*' -print \
21692170
| xargs rm -rf

0 commit comments

Comments
 (0)