diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index eb7189c50..5600f9d7d 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -1383,8 +1383,6 @@ class Environment: for compiler in compilers: if isinstance(compiler, str): compiler = [compiler] - else: - raise EnvironmentException() arg = '--version' try: p, out, err = Popen_safe(compiler + [arg])