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
4e6646a7
Commit
4e6646a7
authored
Apr 06, 2013
by
Marin Usalj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merged inhibit_all_warnings with inhibits_warnings_per_pod?
parent
023e22d4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
target_installer.rb
lib/cocoapods/installer/target_installer.rb
+1
-4
target_installer_spec.rb
spec/unit/installer/target_installer_spec.rb
+13
-8
No files found.
lib/cocoapods/installer/target_installer.rb
View file @
4e6646a7
...
@@ -72,9 +72,6 @@ module Pod
...
@@ -72,9 +72,6 @@ module Pod
if
library
.
platform
.
requires_legacy_ios_archs?
if
library
.
platform
.
requires_legacy_ios_archs?
settings
[
'ARCHS'
]
=
"armv6 armv7"
settings
[
'ARCHS'
]
=
"armv6 armv7"
end
end
if
target_definition
.
inhibit_all_warnings?
settings
[
'GCC_WARN_INHIBIT_ALL_WARNINGS'
]
=
'YES'
end
@target
.
build_settings
(
'Debug'
).
merge!
(
settings
)
@target
.
build_settings
(
'Debug'
).
merge!
(
settings
)
@target
.
build_settings
(
'Release'
).
merge!
(
settings
)
@target
.
build_settings
(
'Release'
).
merge!
(
settings
)
...
@@ -363,7 +360,7 @@ module Pod
...
@@ -363,7 +360,7 @@ module Pod
end
end
end
end
if
target_definition
.
inhibits_warnings_for_pod?
(
consumer
.
spec
.
root
.
name
)
if
target_definition
.
inhibits_warnings_for_pod?
(
consumer
.
spec
.
root
.
name
)
flags
<<
'-w'
flags
<<
'-w
-Xanalyzer -analyzer-disable-checker
'
end
end
flags
*
" "
flags
*
" "
end
end
...
...
spec/unit/installer/target_installer_spec.rb
View file @
4e6646a7
...
@@ -123,14 +123,6 @@ module Pod
...
@@ -123,14 +123,6 @@ module Pod
end
end
end
end
it
"enables the GCC_WARN_INHIBIT_ALL_WARNINGS flag"
do
@podfile
.
inhibit_all_warnings!
@installer
.
install!
@installer
.
library
.
target
.
build_configurations
.
each
do
|
config
|
config
.
build_settings
[
'GCC_WARN_INHIBIT_ALL_WARNINGS'
].
should
==
'YES'
end
end
#--------------------------------------#
#--------------------------------------#
it
'adds the source files of each pod to the target of the Pod library'
do
it
'adds the source files of each pod to the target of the Pod library'
do
...
@@ -266,6 +258,19 @@ module Pod
...
@@ -266,6 +258,19 @@ module Pod
flags
=
@installer
.
send
(
:compiler_flags_for_consumer
,
@spec
.
consumer
(
:ios
))
flags
=
@installer
.
send
(
:compiler_flags_for_consumer
,
@spec
.
consumer
(
:ios
))
flags
.
should
.
not
.
include?
(
'-w'
)
flags
.
should
.
not
.
include?
(
'-w'
)
end
end
it
"adds -Xanalyzer -analyzer-disable-checker per pod"
do
@installer
.
library
.
target_definition
.
stubs
(
:inhibits_warnings_for_pod?
).
returns
(
true
)
flags
=
@installer
.
send
(
:compiler_flags_for_consumer
,
@spec
.
consumer
(
:ios
))
flags
.
should
.
include?
(
'-Xanalyzer -analyzer-disable-checker'
)
end
it
"doesn't inhibit analyzer warnings by default"
do
flags
=
@installer
.
send
(
:compiler_flags_for_consumer
,
@spec
.
consumer
(
:ios
))
flags
.
should
.
not
.
include?
(
'-Xanalyzer -analyzer-disable-checker'
)
end
end
end
end
end
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