Method: Pod::Target::BuildSettings::AggregateTargetSettings#other_cflags
- Defined in:
- lib/cocoapods/target/build_settings.rb
#other_cflags ⇒ Array<String>
The other_cflags build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘other_cflags, build_setting, memoized`.
1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 |
# File 'lib/cocoapods/target/build_settings.rb', line 1220 define_build_settings_method :other_cflags, :build_setting => true, :memoized => true do flags = super() pod_targets_inhibiting_warnings = pod_targets.select(&:inhibit_warnings?) silenced_headers = [] silenced_frameworks = [] pod_targets_inhibiting_warnings.each do |pt| if pt.build_as_framework? && pt.should_build? silenced_headers.append pt.build_settings[@configuration].framework_header_search_path else silenced_headers.concat pt.build_settings[@configuration].public_header_search_paths end silenced_frameworks.concat pt.build_settings[@configuration].framework_search_paths_to_import end flags += silenced_headers.uniq.flat_map { |p| ['-isystem', p] } flags += silenced_frameworks.uniq.flat_map { |p| ['-iframework', p] } flags end |