From 0042095d120ced4852256bccf94aa7939f1c72c1 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 12 Sep 2022 13:00:04 -0400 Subject: [PATCH] mcompile: Remove useless sleep There is no reason to wait 2s before starting the compilation command. Fixes: #10698. --- mesonbuild/mcompile.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mesonbuild/mcompile.py b/mesonbuild/mcompile.py index 1eb8bff2f..2e6829c2d 100644 --- a/mesonbuild/mcompile.py +++ b/mesonbuild/mcompile.py @@ -22,7 +22,6 @@ import shutil import typing as T from collections import defaultdict from pathlib import Path -from time import sleep from . import mlog from . import mesonlib @@ -358,7 +357,6 @@ def run(options: 'argparse.Namespace') -> int: f'Backend `{backend}` is not yet supported by `compile`. Use generated project files directly instead.') mlog.log(mlog.green('INFO:'), 'calculating backend command to run:', join_args(cmd)) - sleep(2) p, *_ = mesonlib.Popen_safe(cmd, stdout=sys.stdout.buffer, stderr=sys.stderr.buffer, env=env) return p.returncode