From 009318dcaf238c5e39e35017f635eab0e673461a Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Mon, 18 Dec 2023 15:23:14 +0900 Subject: [PATCH] cleaner: remove *.tbd For https://github.com/Homebrew/brew/pull/16355#issuecomment-1860642797 Signed-off-by: Akihiro Suda --- Library/Homebrew/cleaner.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb index 28beee4645437..66b5c8f4dff98 100644 --- a/Library/Homebrew/cleaner.rb +++ b/Library/Homebrew/cleaner.rb @@ -5,6 +5,7 @@ # By default: # # * removes `.la` files +# * removes `.tbd` files # * removes `perllocal.pod` files # * removes `.packlist` files # * removes empty directories @@ -125,7 +126,7 @@ def clean_dir(directory) next if path.directory? - if path.extname == ".la" || PERL_BASENAMES.include?(path.basename.to_s) + if path.extname == ".la" || path.extname == ".tbd" || PERL_BASENAMES.include?(path.basename.to_s) path.unlink elsif path.symlink? # Skip it.