Make one function
This commit is contained in:
parent
e1ea9da507
commit
2d4c792b0b
@ -64,19 +64,17 @@ class Keg
|
||||
end
|
||||
|
||||
def dsymutil
|
||||
binary_executable_or_library_files.each { |file| dsymutil_binary(file) }
|
||||
end
|
||||
binary_executable_or_library_files.each do |file|
|
||||
odebug "Extracting symbols #{file}"
|
||||
|
||||
def dsymutil_binary(file)
|
||||
odebug "Extracting symbols #{file}"
|
||||
result = system_command("dsymutil", args: [file])
|
||||
next if result.success?
|
||||
|
||||
result = system_command("dsymutil", args: [file])
|
||||
return if result.success?
|
||||
|
||||
# If it fails again, error out
|
||||
onoe <<~EOS
|
||||
Failed to extract symbols from #{file}:
|
||||
#{result.stderr}
|
||||
EOS
|
||||
# If it fails again, error out
|
||||
onoe <<~EOS
|
||||
Failed to extract symbols from #{file}:
|
||||
#{result.stderr}
|
||||
EOS
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user