Pass CMAKE_OSX_ARCHITECTURES from command line to configure.

This commit is contained in:
John Preston 2021-10-27 10:37:53 +04:00
parent 98c87d4a16
commit 92b3149cdd
3 changed files with 3 additions and 3 deletions

View File

@ -208,7 +208,7 @@ if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "macstore" ]; then
fi
rm -rf "$ReleasePath/$BinaryName.app/Contents/_CodeSignature"
./configure.sh
./configure.sh -D CMAKE_OSX_ARCHITECTURES="x86_64;arm64"
cd $ProjectPath
cmake --build . --config Release --target Telegram

View File

@ -59,7 +59,7 @@ if building:
finish(1, 'Todays updates version exists.')
if uuid == '':
result = subprocess.call('./configure.sh', shell=True)
result = subprocess.call('./configure.sh -D CMAKE_OSX_ARCHITECTURES="x86_64;arm64"', shell=True)
if result != 0:
finish(1, 'While calling GYP.')

2
cmake

@ -1 +1 @@
Subproject commit 33799d3d6c6cc6634f8e69406ce132bb65ebc3b7
Subproject commit c0c09baa3563980602ab98dcc21fe1d1b58ee4a8