Commit a2a8c67b authored by Eloy Duran's avatar Eloy Duran

Use proper flag to enable ARC.

parent c932a890
......@@ -111,7 +111,7 @@ module Pod
attr_writer :compiler_flags
def compiler_flags
flags = "#{@compiler_flags} "
flags << '-fobj-arc' if @requires_arc
flags << '-fobjc-arc' if @requires_arc
flags
end
......
......@@ -96,10 +96,10 @@ describe "A Pod::Specification loaded from a podspec" do
it "adds compiler flags if ARC is required" do
@spec.requires_arc = true
@spec.compiler_flags.should == " -fobj-arc"
@spec.compiler_flags.should == " -fobjc-arc"
@spec.compiler_flags = "-Wunused-value"
@spec.compiler_flags.should == "-Wunused-value -fobj-arc"
@spec.compiler_flags.should == "-Wunused-value -fobjc-arc"
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