wasm test

This commit is contained in:
MaidOpi
2026-05-11 13:21:51 +08:00
parent 0428927f5f
commit fb9966e61a
10 changed files with 201 additions and 56 deletions
+6 -1
View File
@@ -110,11 +110,16 @@ else()
-Wl,-dead_strip
-Wl,-exported_symbols_list,${LEANCLR_GODOT_EXPORTED_SYMBOLS}
)
elseif(UNIX)
elseif(UNIX AND NOT EMSCRIPTEN)
target_link_options(leanclr_godot PRIVATE -Wl,--gc-sections)
endif()
endif()
if(EMSCRIPTEN)
target_link_options(leanclr_godot PRIVATE -sSIDE_MODULE=1)
set_target_properties(leanclr_godot PROPERTIES SUFFIX ".wasm")
endif()
set_target_properties(leanclr_godot PROPERTIES
CXX_VISIBILITY_PRESET hidden
VISIBILITY_INLINES_HIDDEN YES