summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoel Kamminga <contact@jkam.dev>2026-05-30 12:49:43 -0600
committerMiguel Ojeda <ojeda@kernel.org>2026-06-02 10:04:32 +0200
commit025fd4b4fd382112bd4489e5b4437a295934fc19 (patch)
tree06a614d315fdd6988b70519cb9c856854cd6b886 /Makefile
parent3473e0a219fdb2cb013da0a5d917e66fef052325 (diff)
downloadlinux-025fd4b4fd382112bd4489e5b4437a295934fc19.tar.gz
linux-025fd4b4fd382112bd4489e5b4437a295934fc19.zip
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 420dd187e157 (".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: https://github.com/Rust-for-Linux/linux/issues/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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
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