rename & inline dsymutil to prepare_debug_symbols
This commit is contained in:
parent
22b1b61b73
commit
e46a61e181
@ -63,7 +63,7 @@ class Keg
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
def dsymutil
|
def prepare_debug_symbols
|
||||||
binary_executable_or_library_files.each do |file|
|
binary_executable_or_library_files.each do |file|
|
||||||
odebug "Extracting symbols #{file}"
|
odebug "Extracting symbols #{file}"
|
||||||
|
|
||||||
|
|||||||
@ -807,7 +807,7 @@ class FormulaInstaller
|
|||||||
post_install
|
post_install
|
||||||
end
|
end
|
||||||
|
|
||||||
dsymutil(keg) if debug_symbols?
|
keg.prepare_debug_symbols if debug_symbols?
|
||||||
|
|
||||||
# Updates the cache for a particular formula after doing an install
|
# Updates the cache for a particular formula after doing an install
|
||||||
CacheStoreDatabase.use(:linkage) do |db|
|
CacheStoreDatabase.use(:linkage) do |db|
|
||||||
@ -1338,12 +1338,4 @@ class FormulaInstaller
|
|||||||
#{SPDX.license_expression_to_string formula.license}.
|
#{SPDX.license_expression_to_string formula.license}.
|
||||||
EOS
|
EOS
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
@ -483,7 +483,7 @@ class Keg
|
|||||||
ObserverPathnameExtension.n
|
ObserverPathnameExtension.n
|
||||||
end
|
end
|
||||||
|
|
||||||
def dsymutil; end
|
def prepare_debug_symbols; end
|
||||||
|
|
||||||
def remove_oldname_opt_record
|
def remove_oldname_opt_record
|
||||||
return unless oldname_opt_record
|
return unless oldname_opt_record
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user