Skip to content

Commit

Permalink
always export 'getValue','setValue'
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-eire committed Oct 22, 2024
1 parent a2d9909 commit 745c442
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cmake/onnxruntime_webassembly.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ target_compile_options(onnx PRIVATE -Wno-unused-parameter -Wno-unused-variable)

if (onnxruntime_BUILD_WEBASSEMBLY_STATIC_LIB)
bundle_static_library(onnxruntime_webassembly

${PROTOBUF_LIB}
onnx
onnx_proto
Expand Down Expand Up @@ -175,7 +174,6 @@ else()
endif()

target_link_libraries(onnxruntime_webassembly PRIVATE

${PROTOBUF_LIB}
onnx
onnx_proto
Expand All @@ -194,11 +192,7 @@ else()
onnxruntime_util
re2::re2
)
if (onnxruntime_USE_JSEP)
set(EXPORTED_RUNTIME_METHODS "'stackAlloc','stackRestore','stackSave','UTF8ToString','stringToUTF8','lengthBytesUTF8','getValue','setValue'")
else()
set(EXPORTED_RUNTIME_METHODS "'stackAlloc','stackRestore','stackSave','UTF8ToString','stringToUTF8','lengthBytesUTF8'")
endif()
set(EXPORTED_RUNTIME_METHODS "'stackAlloc','stackRestore','stackSave','UTF8ToString','stringToUTF8','lengthBytesUTF8','getValue','setValue'")
if (onnxruntime_USE_XNNPACK)
target_link_libraries(onnxruntime_webassembly PRIVATE XNNPACK)
string(APPEND EXPORTED_RUNTIME_METHODS ",'addFunction'")
Expand Down

0 comments on commit 745c442

Please sign in to comment.