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.
This commit is contained in:
parent
f0335dc7dd
commit
ba1737cb66
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue