Skip to content

Commit

Permalink
Merge pull request #16355 from AkihiroSuda/lib-ext-tbd
Browse files Browse the repository at this point in the history
cleaner: remove *.tbd
  • Loading branch information
MikeMcQuaid committed Dec 19, 2023
2 parents 2aa78c9 + 009318d commit db01274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/cleaner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# By default:
#
# * removes `.la` files
# * removes `.tbd` files
# * removes `perllocal.pod` files
# * removes `.packlist` files
# * removes empty directories
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit db01274

Please sign in to comment.