Update onnxruntime to get it to build with Xcode 15.4

This commit is contained in:
Kovid Goyal 2025-03-04 06:50:24 +05:30
parent 7862560ef0
commit 8d97c1021b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 6 additions and 5 deletions

View File

@ -6,5 +6,6 @@ root '/Users/Shared/calibre-build'
python '/usr/bin/python3' python '/usr/bin/python3'
rsync '/usr/local/bin/rsync' rsync '/usr/local/bin/rsync'
# see https://doc.qt.io/qt-6/macos.html # see https://doc.qt.io/qt-6/macos.html
deploy_target '12.0' # further, onnxruntime needs macOS 13.3 https://github.com/microsoft/onnxruntime/pull/23308
deploy_target '13.3'
universal 'true' universal 'true'

View File

@ -47,7 +47,7 @@ APPNAME, VERSION = calibre_constants['appname'], calibre_constants['version']
basenames, main_modules, main_functions = calibre_constants['basenames'], calibre_constants['modules'], calibre_constants['functions'] basenames, main_modules, main_functions = calibre_constants['basenames'], calibre_constants['modules'], calibre_constants['functions']
ARCH_FLAGS = '-arch x86_64 -arch arm64'.split() ARCH_FLAGS = '-arch x86_64 -arch arm64'.split()
EXPECTED_ARCHES = {'x86_64', 'arm64'} EXPECTED_ARCHES = {'x86_64', 'arm64'}
MINIMUM_SYSTEM_VERSION = '13.0.0' MINIMUM_SYSTEM_VERSION = '13.3.0'
def compile_launcher_lib(contents_dir, base, pyver, inc_dir): def compile_launcher_lib(contents_dir, base, pyver, inc_dir):

View File

@ -1197,9 +1197,9 @@
"name": "onnx", "name": "onnx",
"comment": "This is newer than the version needed for the version of piper-phonemize to get it to build on macOS (see CMakeLists.txt in piper-phonemize)", "comment": "This is newer than the version needed for the version of piper-phonemize to get it to build on macOS (see CMakeLists.txt in piper-phonemize)",
"unix": { "unix": {
"filename": "onnx-1.19.0.tar.gz", "filename": "onnx-1.20.2.tar.gz",
"hash": "sha256:dd945b2fb8c2e7df7243e9d96c0293f45350058f0f713f66c519834a49a6c99d", "hash": "sha256:6780b0b4f11d22f30a827dbbd3bd626e85e9c48e98719e9a535eda543446eab8",
"urls": ["https://github.com/microsoft/onnxruntime/archive/refs/tags/v1.19.0.tar.gz"] "urls": ["https://github.com/microsoft/onnxruntime/archive/refs/tags/v1.20.2.tar.gz"]
} }
}, },
{ {