aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-04-07 17:14:36 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-04-08 10:22:57 +0300
commit5614ce4a546b28d4c8ff99d7b8459830455be711 (patch)
tree38fa5353a0613b8c4e1438c6a21ba4d72caa63f2
parent0b50c5705f6e7abc12155f2ecdb6acc4730a5922 (diff)
downloadmeson-5614ce4a546b28d4c8ff99d7b8459830455be711.zip
meson-5614ce4a546b28d4c8ff99d7b8459830455be711.tar.gz
meson-5614ce4a546b28d4c8ff99d7b8459830455be711.tar.bz2
Skip compilers that are not used for a given target.
-rw-r--r--mesonbuild/backend/xcodebackend.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py
index 9ba7e46..3504beb 100644
--- a/mesonbuild/backend/xcodebackend.py
+++ b/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()