Skip to content

Commit b5c06cf

Browse files
authored
python3.12-onnxruntime: bump to 1.22.0 (#261)
1 parent 7359227 commit b5c06cf

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

tur-pypi-312/python3.12-onnxruntime/0001-build-providers.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
--- a/cmake/onnxruntime_providers_cpu.cmake
22
+++ b/cmake/onnxruntime_providers_cpu.cmake
3-
@@ -225,7 +225,6 @@
3+
@@ -218,7 +218,6 @@
44

55
if (NOT onnxruntime_MINIMAL_BUILD AND NOT onnxruntime_EXTENDED_MINIMAL_BUILD
6-
AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin|iOS|visionOS"
6+
AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin|iOS|visionOS|tvOS"
77
- AND NOT CMAKE_SYSTEM_NAME STREQUAL "Android"
88
AND NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
99
file(GLOB onnxruntime_providers_shared_cc_srcs CONFIGURE_DEPENDS
1010
"${ONNXRUNTIME_ROOT}/core/providers/shared/*.h"
1111
--- a/cmake/onnxruntime_python.cmake
1212
+++ b/cmake/onnxruntime_python.cmake
13-
@@ -707,7 +707,6 @@
13+
@@ -740,7 +740,6 @@
1414

1515
if (NOT onnxruntime_MINIMAL_BUILD AND NOT onnxruntime_EXTENDED_MINIMAL_BUILD
16-
AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin|iOS|visionOS"
16+
AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin|iOS|visionOS|tvOS"
1717
- AND NOT CMAKE_SYSTEM_NAME STREQUAL "Android"
1818
AND NOT onnxruntime_USE_ROCM
1919
AND NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--- a/onnxruntime/test/shared_lib/custom_op_utils.cc
2+
+++ b/onnxruntime/test/shared_lib/custom_op_utils.cc
3+
@@ -1,6 +1,11 @@
4+
// Copyright (c) Microsoft Corporation. All rights reserved.
5+
// Licensed under the MIT License.
6+
7+
+#if defined(__ANDROID__) && !defined(__LP64__)
8+
+#pragma GCC diagnostic push
9+
+#pragma GCC diagnostic ignored "-Wshorten-64-to-32"
10+
+#endif
11+
+
12+
#include <gsl/gsl>
13+
#include "gtest/gtest.h"
14+
15+
@@ -659,3 +664,7 @@
16+
17+
return nullptr;
18+
}
19+
+
20+
+#if defined(__ANDROID__) && !defined(__LP64__)
21+
+#pragma GCC diagnostic pop
22+
+#endif

tur-pypi-312/python3.12-onnxruntime/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://onnxruntime.ai/
22
TERMUX_PKG_DESCRIPTION="Cross-platform, high performance ML inferencing and training accelerator"
33
TERMUX_PKG_LICENSE="MIT"
44
TERMUX_PKG_MAINTAINER="@termux"
5-
TERMUX_PKG_VERSION="1.21.1"
5+
TERMUX_PKG_VERSION="1.22.0"
66
TERMUX_PKG_SRCURL=git+https://github.com/microsoft/onnxruntime
77
TERMUX_PKG_DEPENDS="libc++, python"
88
TERMUX_PKG_BUILD_DEPENDS="python-numpy"

0 commit comments

Comments
 (0)