--- meson-1.2.0.old/mesonbuild/compilers/detect.py +++ meson-1.2.0/mesonbuild/compilers/detect.py @@ -423,7 +423,7 @@ arg = '--version' try: p, out, err = Popen_safe(compiler + [arg]) - except OSError as e: + except (FileNotFoundError, IOError, OSError) as e: popen_exceptions[join_args(compiler + [arg])] = e version = search_version(out) match = re.search('^Target: (.*?)-', out, re.MULTILINE)