summaryrefslogtreecommitdiff
path: root/0002-remove-nsync.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-02-01 06:22:39 +0000
committerCoprDistGit <infra@openeuler.org>2024-02-01 06:22:39 +0000
commit2e6205e7c427a3e0f79b954360d5309981308ecd (patch)
treec8cd1f1a3e7eee644a8a26f04d8c88012338c096 /0002-remove-nsync.patch
parent163fafecf77c42a8ad9cd11cc33d9cd5cb89d71c (diff)
automatic import of onnxruntime
Diffstat (limited to '0002-remove-nsync.patch')
-rw-r--r--0002-remove-nsync.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/0002-remove-nsync.patch b/0002-remove-nsync.patch
new file mode 100644
index 0000000..3c53fa1
--- /dev/null
+++ b/0002-remove-nsync.patch
@@ -0,0 +1,25 @@
+From c285edeb9c5f8af7893fd4fd08dc803f33bafd3a Mon Sep 17 00:00:00 2001
+From: binsz <274620705z@gmail.com>
+Date: Tue, 30 Jan 2024 23:37:42 +0800
+Subject: [PATCH] remove nsync
+
+---
+ cmake/onnxruntime_mlas.cmake | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cmake/onnxruntime_mlas.cmake b/cmake/onnxruntime_mlas.cmake
+index e0ccc50..279d63d 100644
+--- a/cmake/onnxruntime_mlas.cmake
++++ b/cmake/onnxruntime_mlas.cmake
+@@ -611,7 +611,7 @@ if (NOT onnxruntime_ORT_MINIMAL_BUILD)
+ if (CPUINFO_SUPPORTED AND NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
+ target_link_libraries(onnxruntime_mlas_q4dq PRIVATE cpuinfo)
+ endif()
+- if(NOT WIN32)
++ if (FALSE AND NOT WIN32)
+ target_link_libraries(onnxruntime_mlas_q4dq PRIVATE nsync::nsync_cpp ${CMAKE_DL_LIBS})
+ endif()
+ if (CMAKE_SYSTEM_NAME STREQUAL "Android")
+--
+2.41.0
+