rename & inline dsymutil to prepare_debug_symbols
This commit is contained in:
parent
22b1b61b73
commit
e46a61e181
@ -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}"
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user