Disable multiprocessing in mojom_parser 81/266681/1
authorChandan Padhi <c.padhi@samsung.com>
Wed, 17 Nov 2021 06:47:25 +0000 (12:17 +0530)
committerChandan Padhi <c.padhi@samsung.com>
Wed, 17 Nov 2021 06:47:25 +0000 (12:17 +0530)
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 <c.padhi@samsung.com>
mojo/public/tools/mojom/mojom_parser.py

index 74beb07..bd9a359 100755 (executable)
@@ -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')