Commit 4256ae7b authored by Fabio Pelosin's avatar Fabio Pelosin

[Specification] Correctly report ARC compiler flag.

parent 6aaf5edc
...@@ -315,13 +315,14 @@ module Pod ...@@ -315,13 +315,14 @@ module Pod
end end
def compiler_flags def recursive_compiler_flags
if @parent @parent ? @parent.recursive_compiler_flags | @compiler_flags[active_platform] : @compiler_flags[active_platform]
flags = [@parent.compiler_flags]
else
flags = [requires_arc ? ' -fobjc-arc' : '']
end end
(flags + @compiler_flags[active_platform].clone).join(' ')
def compiler_flags
flags = recursive_compiler_flags.dup
flags << ' -fobjc-arc' if requires_arc
flags.join(' ')
end end
platform_attr_writer :compiler_flags, lambda {|value, current| current << value } platform_attr_writer :compiler_flags, lambda {|value, current| current << value }
......
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