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
0ae92183
Commit
0ae92183
authored
Apr 08, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #943 from CocoaPods/unify_inhibit_logic
merged inhibit_all_warnings with inhibits_warnings_per_pod?
parents
9bcaa8a8
4e6646a7
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 @
0ae92183
...
...
@@ -72,9 +72,6 @@ module Pod
if
library
.
platform
.
requires_legacy_ios_archs?
settings
[
'ARCHS'
]
=
"armv6 armv7"
end
if
target_definition
.
inhibit_all_warnings?
settings
[
'GCC_WARN_INHIBIT_ALL_WARNINGS'
]
=
'YES'
end
@target
.
build_settings
(
'Debug'
).
merge!
(
settings
)
@target
.
build_settings
(
'Release'
).
merge!
(
settings
)
...
...
@@ -363,7 +360,7 @@ module Pod
end
end
if
target_definition
.
inhibits_warnings_for_pod?
(
consumer
.
spec
.
root
.
name
)
flags
<<
'-w'
flags
<<
'-w
-Xanalyzer -analyzer-disable-checker
'
end
flags
*
" "
end
...
...
spec/unit/installer/target_installer_spec.rb
View file @
0ae92183
...
...
@@ -123,14 +123,6 @@ module Pod
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
...
...
@@ -266,6 +258,19 @@ module Pod
flags
=
@installer
.
send
(
:compiler_flags_for_consumer
,
@spec
.
consumer
(
:ios
))
flags
.
should
.
not
.
include?
(
'-w'
)
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
...
...
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