Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Nov 1, 2024
1 parent 2aed5fa commit 564d356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/cocos/editor-support/spine-wasm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 564d356

Please sign in to comment.