-
Notifications
You must be signed in to change notification settings - Fork 34
/
onnxruntime-1.19.2-use-clog.patch
53 lines (47 loc) · 2.04 KB
/
onnxruntime-1.19.2-use-clog.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
diff -Nuarp onnxruntime-1.19.2.orig/cmake/onnxruntime_common.cmake onnxruntime-1.19.2/cmake/onnxruntime_common.cmake
--- onnxruntime-1.19.2.orig/cmake/onnxruntime_common.cmake 2024-08-31 06:02:31.000000000 +0800
+++ onnxruntime-1.19.2/cmake/onnxruntime_common.cmake 2024-10-18 16:23:28.443375742 +0800
@@ -46,20 +46,6 @@ else()
"${ONNXRUNTIME_ROOT}/core/platform/posix/logging/*.cc"
)
endif()
-
- if (CMAKE_SYSTEM_NAME STREQUAL "Android")
- list(APPEND onnxruntime_common_src_patterns
- "${ONNXRUNTIME_ROOT}/core/platform/android/logging/*.h"
- "${ONNXRUNTIME_ROOT}/core/platform/android/logging/*.cc"
- )
- endif()
-
- if (APPLE)
- list(APPEND onnxruntime_common_src_patterns
- "${ONNXRUNTIME_ROOT}/core/platform/apple/logging/*.h"
- "${ONNXRUNTIME_ROOT}/core/platform/apple/logging/*.mm"
- )
- endif()
endif()
if(onnxruntime_target_platform STREQUAL "ARM64EC")
diff -Nuarp onnxruntime-1.19.2.orig/onnxruntime/core/platform/logging/make_platform_default_log_sink.cc onnxruntime-1.19.2/onnxruntime/core/platform/logging/make_platform_default_log_sink.cc
--- onnxruntime-1.19.2.orig/onnxruntime/core/platform/logging/make_platform_default_log_sink.cc 2024-08-31 06:02:31.000000000 +0800
+++ onnxruntime-1.19.2/onnxruntime/core/platform/logging/make_platform_default_log_sink.cc 2024-10-18 16:23:55.339377025 +0800
@@ -3,25 +3,13 @@
#include "core/platform/logging/make_platform_default_log_sink.h"
-#if defined(__ANDROID__)
-#include "core/platform/android/logging/android_log_sink.h"
-#elif defined(__APPLE__)
-#include "core/platform/apple/logging/apple_log_sink.h"
-#else
#include "core/common/logging/sinks/clog_sink.h"
-#endif
namespace onnxruntime {
namespace logging {
std::unique_ptr<ISink> MakePlatformDefaultLogSink() {
-#if defined(__ANDROID__)
- return std::make_unique<AndroidLogSink>();
-#elif defined(__APPLE__)
- return std::make_unique<AppleLogSink>();
-#else
return std::make_unique<CLogSink>();
-#endif
}
} // namespace logging