diff --git a/mesonbuild/mdevenv.py b/mesonbuild/mdevenv.py index ffcf3b020bb0..5d431446710f 100644 --- a/mesonbuild/mdevenv.py +++ b/mesonbuild/mdevenv.py @@ -217,6 +217,8 @@ def run_cmd(b: Build, args: T.List[str], workdir: T.Optional[str] = None) -> int return e.returncode except FileNotFoundError: raise MesonException(f'Command not found: {args[0]}') + except KeyboardInterrupt: + pass def run(options: argparse.Namespace) -> int: buildfile = Path(options.builddir, 'meson-private', 'build.dat')