Skip to content

Commit

Permalink
Add SHELL
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Jan 30, 2024
1 parent e80360a commit ce98095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/onnxruntime_webassembly.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ else()
endif()
if (CMAKE_CXX_FLAGS MATCHES "sanitize=address")
# The integer value below might often need be adjusted.
target_link_options(onnxruntime_webassembly PRIVATE "-s INITIAL_MEMORY=786432000")
target_link_options(onnxruntime_webassembly PRIVATE "SHELL:-s INITIAL_MEMORY=786432000")
else()
# Enable SAFE_HEAP in debug build
target_link_options(onnxruntime_webassembly PRIVATE "$<$<CONFIG:Debug>:SHELL:-s ASSERTIONS=2>")
Expand Down

0 comments on commit ce98095

Please sign in to comment.