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'