Skip compilers that are not used for a given target.

pull/8627/head
Jussi Pakkanen 4 years ago
parent 0b50c5705f
commit 5614ce4a54
  1. 2
      mesonbuild/backend/xcodebackend.py

@ -866,6 +866,8 @@ class XCodeBackend(backends.Backend):
if lang not in LANGNAMEMAP:
continue
compiler = target.compilers.get(lang)
if compiler is None:
continue
# Start with warning args
warn_args = compiler.get_warn_args(self.get_option_for_target(OptionKey('warning_level'), target))
# Add compile args added using add_project_arguments()

Loading…
Cancel
Save