From 228934b6c38e52deadb2d0dfe03f8a6980b003b3 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 24 Jun 2026 23:37:32 +0400 Subject: [PATCH] Work around qmake race condition --- Telegram/build/prepare/prepare.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/build/prepare/prepare.py b/Telegram/build/prepare/prepare.py index 4997ba7cd0..45e64be63f 100644 --- a/Telegram/build/prepare/prepare.py +++ b/Telegram/build/prepare/prepare.py @@ -1579,7 +1579,10 @@ win: -nomake tests ^ -platform win32-msvc - jom -j%NUMBER_OF_PROCESSORS% + rem jom -jN occasionally fails to create the shared mkspecs\modules-inst + rem directory due to a race in qmake's mkpath under parallel builds; the + rem build is incremental, so simply retrying picks up where it stopped. + jom -j%NUMBER_OF_PROCESSORS% || jom -j%NUMBER_OF_PROCESSORS% jom -j%NUMBER_OF_PROCESSORS% install """) else: # qt > '6'