From 995ca865cabee65a80afe2e1e9a3fee1b542040d Mon Sep 17 00:00:00 2001 From: Chandan Padhi Date: Wed, 17 Nov 2021 12:17:25 +0530 Subject: [PATCH] Disable multiprocessing in mojom_parser Standard build gets stuck/hangs while executing mojom_parser.py with python3. This commit disables multiprocessing in mojom_parser to fix the hang issue. Change-Id: Ifaebdc0f4f9410f11105ab2d75841e3bc23b5b6a Signed-off-by: Chandan Padhi --- mojo/public/tools/mojom/mojom_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mojo/public/tools/mojom/mojom_parser.py b/mojo/public/tools/mojom/mojom_parser.py index 74beb07..bd9a359 100755 --- a/mojo/public/tools/mojom/mojom_parser.py +++ b/mojo/public/tools/mojom/mojom_parser.py @@ -31,7 +31,7 @@ from mojom.parse import conditional_features # Disable this for easier debugging. # In Python 2, subprocesses just hang when exceptions are thrown :(. -_ENABLE_MULTIPROCESSING = sys.version_info[0] > 2 +_ENABLE_MULTIPROCESSING = False if sys.version_info < (3, 4): _MULTIPROCESSING_USES_FORK = sys.platform.startswith('linux') -- 2.7.4