rename & inline dsymutil to prepare_debug_symbols

This commit is contained in:
Lukas Oberhuber 2022-07-30 11:08:52 +01:00
parent 22b1b61b73
commit e46a61e181
3 changed files with 3 additions and 11 deletions

View File

@ -63,7 +63,7 @@ class Keg
EOS
end
def dsymutil
def prepare_debug_symbols
binary_executable_or_library_files.each do |file|
odebug "Extracting symbols #{file}"

View File

@ -807,7 +807,7 @@ class FormulaInstaller
post_install
end
dsymutil(keg) if debug_symbols?
keg.prepare_debug_symbols if debug_symbols?
# Updates the cache for a particular formula after doing an install
CacheStoreDatabase.use(:linkage) do |db|
@ -1338,12 +1338,4 @@ class FormulaInstaller
#{SPDX.license_expression_to_string formula.license}.
EOS
end
sig { params(keg: Keg).void }
def dsymutil(keg)
keg.dsymutil
rescue RuntimeError => e
ofail "Failed to extract debugging symbols for #{formula.full_name}"
puts e
end
end

View File

@ -483,7 +483,7 @@ class Keg
ObserverPathnameExtension.n
end
def dsymutil; end
def prepare_debug_symbols; end
def remove_oldname_opt_record
return unless oldname_opt_record