Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
a2a8c67b
Commit
a2a8c67b
authored
Nov 22, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use proper flag to enable ARC.
parent
c932a890
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
specification.rb
lib/cocoapods/specification.rb
+1
-1
specification_spec.rb
spec/unit/specification_spec.rb
+2
-2
No files found.
lib/cocoapods/specification.rb
View file @
a2a8c67b
...
...
@@ -111,7 +111,7 @@ module Pod
attr_writer
:compiler_flags
def
compiler_flags
flags
=
"
#{
@compiler_flags
}
"
flags
<<
'-fobj-arc'
if
@requires_arc
flags
<<
'-fobj
c
-arc'
if
@requires_arc
flags
end
...
...
spec/unit/specification_spec.rb
View file @
a2a8c67b
...
...
@@ -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
==
" -fobj
c
-arc"
@spec
.
compiler_flags
=
"-Wunused-value"
@spec
.
compiler_flags
.
should
==
"-Wunused-value -fobj-arc"
@spec
.
compiler_flags
.
should
==
"-Wunused-value -fobj
c
-arc"
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment