Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Aug 12, 2024
1 parent 8321316 commit 4289931
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions src/patches/wasm/0009-temporary-garbage.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@ Date: Mon, 21 Dec 2000 00:00:00 -0600
Subject: Missing macros

diff --git a/onnxruntime/core/mlas/lib/q4_dq.cpp b/onnxruntime/core/mlas/lib/q4_dq.cpp
index 015d69de68..35af58fcf9 100644
index 015d69de68..4976256e35 100644
--- a/onnxruntime/core/mlas/lib/q4_dq.cpp
+++ b/onnxruntime/core/mlas/lib/q4_dq.cpp
@@ -20,6 +20,13 @@ Abstract:
@@ -20,6 +20,8 @@ Abstract:

#include "q4common.h"

+#ifndef ORT_ENFORCE
+#define ORT_ENFORCE(a, b)
+#endif
+#ifndef ORT_THROW
+#define ORT_THROW(a)
+#endif
+#include "core/common/common.h"
+
template<typename T>
constexpr
Expand Down
2 changes: 1 addition & 1 deletion src/static-build/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(onnxruntime_static_lib)

# set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded)
# set(ONNX_USE_MSVC_STATIC_RUNTIME ON)
# set(protobuf_MSVC_STATIC_RUNTIME ON)
set(protobuf_MSVC_STATIC_RUNTIME OFF)
set(onnxruntime_BUILD_SHARED_LIB ON)

add_definitions(-D_SILENCE_ALL_CXX23_DEPRECATION_WARNINGS)
Expand Down

0 comments on commit 4289931

Please sign in to comment.