aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-02-03 14:25:37 -0800
committerJussi Pakkanen <jpakkane@gmail.com>2020-02-04 20:47:49 +0200
commit7097d8a021a2fddb42b9b8e0e1111c6cb6f3ff8f (patch)
tree377c5b46bfc34d113b49bd2eda9b3585b661b054
parent1ea20a37d7d7041d045dfa46eebb22108569bb48 (diff)
downloadmeson-7097d8a021a2fddb42b9b8e0e1111c6cb6f3ff8f.zip
meson-7097d8a021a2fddb42b9b8e0e1111c6cb6f3ff8f.tar.gz
meson-7097d8a021a2fddb42b9b8e0e1111c6cb6f3ff8f.tar.bz2
environment: Handle cases of no cs compiler being installed correctly
-rw-r--r--mesonbuild/environment.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 21d33a5..beaff76 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -1336,6 +1336,8 @@ class Environment:
cls = MonoCompiler
elif "Visual C#" in out:
cls = VisualStudioCsCompiler
+ else:
+ continue
self.coredata.add_lang_args(cls.language, cls, for_machine, self)
return cls(comp, version, for_machine, info)