Commit 46a17cce authored by Marius Rackwitz's avatar Marius Rackwitz

[Analyzer TargetInspector] Refactor #compute_archs

parent 68c94e0d
...@@ -155,13 +155,10 @@ module Pod ...@@ -155,13 +155,10 @@ module Pod
# @return [Array<String>] # @return [Array<String>]
# #
def compute_archs(user_targets) def compute_archs(user_targets)
archs = [] archs = user_targets.flat_map do |target|
user_targets.each do |target| Array(target.common_resolved_build_setting('ARCHS'))
target_archs = target.common_resolved_build_setting('ARCHS') end.compact.uniq.sort
archs.concat(Array(target_archs))
end
archs = archs.compact.uniq.sort
UI.message('Using `ARCHS` setting to build architectures of ' \ UI.message('Using `ARCHS` setting to build architectures of ' \
"target `#{target_definition.label}`: " \ "target `#{target_definition.label}`: " \
"(`#{archs.join('`, `')}`)") "(`#{archs.join('`, `')}`)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment