diff --git a/Telegram/build/prepare/prepare.py b/Telegram/build/prepare/prepare.py index 19c8a5e176..559e8bdb59 100644 --- a/Telegram/build/prepare/prepare.py +++ b/Telegram/build/prepare/prepare.py @@ -519,9 +519,13 @@ stage('lzma', """ win: git clone https://github.com/desktop-app/lzma.git cd lzma\\C\\Util\\LzmaLib - msbuild -m LzmaLib.sln /property:Configuration=Debug /property:Platform="$X8664" + SET "ToolsetProp=" +winarm: + SET "ToolsetProp=/property:PlatformToolset=v145" +win: + msbuild -m LzmaLib.sln /property:Configuration=Debug /property:Platform="$X8664" %ToolsetProp% release: - msbuild -m LzmaLib.sln /property:Configuration=Release /property:Platform="$X8664" + msbuild -m LzmaLib.sln /property:Configuration=Release /property:Platform="$X8664" %ToolsetProp% """) stage('xz', """ @@ -1387,10 +1391,12 @@ depends:patches/breakpad.diff win: SET "PYTHONUTF8=1" SET "FolderPostfix=" + SET "ToolsetProp=" win64: SET "FolderPostfix=_x64" winarm: SET "FolderPostfix=_ARM64" + SET "ToolsetProp=/property:PlatformToolset=v145" win: depends:python/Scripts/activate.bat %THIRDPARTY_DIR%\\python\\Scripts\\activate.bat @@ -1402,7 +1408,7 @@ release: ninja -C out/Release%FolderPostfix% common crash_generation_client exception_handler cd tools\\windows\\dump_syms gyp dump_syms.gyp --format=msvs - msbuild -m dump_syms.vcxproj /property:Configuration=Release /property:Platform="x64" + msbuild -m dump_syms.vcxproj /property:Configuration=Release /property:Platform="x64" %ToolsetProp% win: deactivate mac: