From 93cb22cb797f08856f7fb76320d10300e6a1d196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hock?= Date: Tue, 12 Dec 2023 22:16:28 +0100 Subject: [PATCH] Set emcc optimisation level to -O1, since EM_JS snippets vanish at higher level #28 --- cpp/StftPitchShift/WasmStftPitchShift.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/StftPitchShift/WasmStftPitchShift.cmake b/cpp/StftPitchShift/WasmStftPitchShift.cmake index 7e6a88e..cd775cb 100755 --- a/cpp/StftPitchShift/WasmStftPitchShift.cmake +++ b/cpp/StftPitchShift/WasmStftPitchShift.cmake @@ -13,7 +13,7 @@ add_custom_command( -s WASM=1 -s EXPORTED_RUNTIME_METHODS=allocateUTF8,UTF8ToString -s EXPORTED_FUNCTIONS=_malloc,_free - -O2 + -O1 -std=c++20 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" DEPENDS "${CMAKE_CURRENT_LIST_DIR}/wasm.cpp" VERBATIM)