From 564d356806aa4414388306bf8e1e57d966ae3de3 Mon Sep 17 00:00:00 2001 From: James Chen Date: Fri, 1 Nov 2024 11:08:50 +0800 Subject: [PATCH] Update CMakeLists.txt --- native/cocos/editor-support/spine-wasm/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/cocos/editor-support/spine-wasm/CMakeLists.txt b/native/cocos/editor-support/spine-wasm/CMakeLists.txt index fb6a270d7f8..578c32a5c10 100644 --- a/native/cocos/editor-support/spine-wasm/CMakeLists.txt +++ b/native/cocos/editor-support/spine-wasm/CMakeLists.txt @@ -26,7 +26,7 @@ else() set(SPINE_EXTRA_FLAGS "-Oz") endif() -if(BUILD_WASM EQUAL 1) +if(BUILD_WASM EQUAL 1 AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug") set(EVAL_CTOR_FLAG "-s EVAL_CTORS=1") else() set(EVAL_CTOR_FLAG "") # asmjs doesn't support EVAL_CTORS