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 recursive_compiler_flags
@parent ? @parent.recursive_compiler_flags | @compiler_flags[active_platform] : @compiler_flags[active_platform]
end
def compiler_flags def compiler_flags
if @parent flags = recursive_compiler_flags.dup
flags = [@parent.compiler_flags] flags << ' -fobjc-arc' if requires_arc
else flags.join(' ')
flags = [requires_arc ? ' -fobjc-arc' : '']
end
(flags + @compiler_flags[active_platform].clone).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