Lines Matching refs:flag
246 def self.add_compiler_flag_to_project(installer, flag, configuration: nil) argument
251 self.set_flag_in_config(config, flag, configuration: configuration)
257 def self.remove_compiler_flag_from_project(installer, flag, configuration: nil) argument
262 self.remove_flag_in_config(config, flag, configuration: configuration)
268 def self.add_compiler_flag_to_pods(installer, flag, configuration: nil) argument
271 self.set_flag_in_config(config, flag, configuration: configuration)
276 def self.set_flag_in_config(config, flag, configuration: nil) argument
278 self.add_flag_for_key(config, flag, "OTHER_CFLAGS")
279 self.add_flag_for_key(config, flag, "OTHER_CPLUSPLUSFLAGS")
283 def self.remove_flag_in_config(config, flag, configuration: nil) argument
285 self.remove_flag_for_key(config, flag, "OTHER_CFLAGS")
286 self.remove_flag_for_key(config, flag, "OTHER_CPLUSPLUSFLAGS")
291 def self.add_flag_for_key(config, flag, key) argument
301 if !current_setting.include?(flag)
302 current_setting = "#{current_setting} #{flag}"
308 def self.remove_flag_for_key(config, flag, key) argument
318 if current_setting.include?(flag)
319 current_setting.slice! flag