From ce9809535902d72809e1a56dae06cf9824a7c633 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Tue, 30 Jan 2024 14:27:55 -0800 Subject: [PATCH] Add SHELL --- cmake/onnxruntime_webassembly.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/onnxruntime_webassembly.cmake b/cmake/onnxruntime_webassembly.cmake index de4b6e9753d83..f833cbe8cce39 100644 --- a/cmake/onnxruntime_webassembly.cmake +++ b/cmake/onnxruntime_webassembly.cmake @@ -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 "$<$:SHELL:-s ASSERTIONS=2>")