Commit 5cdcf8a8 authored by Fabio Pelosin's avatar Fabio Pelosin

[LocalPod] Fix compiler flags.

parent e30cbd78
...@@ -456,6 +456,8 @@ module Pod ...@@ -456,6 +456,8 @@ module Pod
# @raise If the {#add_file_references_to_project} was not called before of # @raise If the {#add_file_references_to_project} was not called before of
# calling this method. # calling this method.
# #
# @todo Check compiler flags implementation and xcconfig implementation.
#
# @return [void] # @return [void]
# #
def add_build_files_to_target(target) def add_build_files_to_target(target)
...@@ -464,7 +466,10 @@ module Pod ...@@ -464,7 +466,10 @@ module Pod
"project before adding the build files to the target." "project before adding the build files to the target."
end end
file_references_by_spec.each do |spec, file_reference| file_references_by_spec.each do |spec, file_reference|
target.add_file_references(file_reference, (spec.compiler_flags * " ").strip) flags = spec.compiler_flags.dup
flags << '-fobjc-arc' if spec.requires_arc
flags = flags * " "
target.add_file_references(file_reference, flags)
end end
end end
......
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