Commit fab2fc34 authored by Peter Ryszkiewicz's avatar Peter Ryszkiewicz

Simplified logic for adding the swift warning flag.

parent bcf5e376
...@@ -283,13 +283,9 @@ module Pod ...@@ -283,13 +283,9 @@ module Pod
# #
def self.add_language_specific_settings(target, xcconfig) def self.add_language_specific_settings(target, xcconfig)
if target.uses_swift? if target.uses_swift?
build_settings = { other_swift_flags = ['$(inherited)', quote(%w(-D COCOAPODS))]
'OTHER_SWIFT_FLAGS' => [ other_swift_flags += [quote(%w(-suppress-warnings))] if target.try(:inhibit_warnings?) || false
'$(inherited)', build_settings = { 'OTHER_SWIFT_FLAGS' => other_swift_flags.join(' ') }
quote(%w(-D COCOAPODS)),
(quote(%w(-suppress-warnings)) if target.try(:inhibit_warnings?) || false),
].compact.join(' '),
}
xcconfig.merge!(build_settings) xcconfig.merge!(build_settings)
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