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