diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-02-16 12:14:51 -0500 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-02-20 09:58:34 -0500 |
commit | ba1737cb66c97e1d3256f626ab7e360798376e9d (patch) | |
tree | fb47fe152c687dc0879b10f318a0ecfe6fb20487 /mesonbuild | |
parent | f0335dc7dd249c236c1acc1a69a2471357c5b836 (diff) | |
download | meson-ba1737cb66c97e1d3256f626ab7e360798376e9d.zip meson-ba1737cb66c97e1d3256f626ab7e360798376e9d.tar.gz meson-ba1737cb66c97e1d3256f626ab7e360798376e9d.tar.bz2 |
interpreter: Do not ignore all exceptions when adding compiler
Suppressing all exceptions was hidding even syntax errors in compiler
source code. If a compiler cannot be found, a MesonException is raised,
we should only expect that type.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/interpreter/interpreter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index b740846..2bf97da 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -1443,7 +1443,7 @@ class Interpreter(InterpreterBase, HoldableObject): mlog.log_once('Cross compiler sanity tests disabled via the cross file.') else: comp.sanity_check(self.environment.get_scratch_dir(), self.environment) - except Exception: + except mesonlib.MesonException: if not required: mlog.log('Compiler for language', mlog.bold(lang), 'for the', machine_name, |