From 179861ccd199035e4a610b0ebf28fe99cb3502ae Mon Sep 17 00:00:00 2001 From: Jehan Date: Sat, 21 Sep 2019 11:57:09 +0200 Subject: mesonbuild: fix exception name. CrossNoRunException is in compilers module, not mesonlib. --- mesonbuild/compilers/mixins/clike.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index 3af176829..304a912f4 100644 --- a/mesonbuild/compilers/mixins/clike.py +++ b/mesonbuild/compilers/mixins/clike.py @@ -371,7 +371,7 @@ class CLikeCompiler: def run(self, code: str, env, *, extra_args=None, dependencies=None): if self.is_cross and self.exe_wrapper is None: - raise mesonlib.CrossNoRunException('Can not run test applications in this cross environment.') + raise compilers.CrossNoRunException('Can not run test applications in this cross environment.') with self._build_wrapper(code, env, extra_args, dependencies, mode='link', want_output=True) as p: if p.returncode != 0: mlog.debug('Could not compile test file %s: %d\n' % ( -- cgit v1.2.3