|
@@ -817,7 +817,7 @@ macro (setup_emscripten_linker_flags LINKER_FLAGS)
|
|
|
else ()
|
|
else ()
|
|
|
set (MEMORY_LINKER_FLAGS "-s TOTAL_MEMORY=${EMSCRIPTEN_TOTAL_MEMORY}")
|
|
set (MEMORY_LINKER_FLAGS "-s TOTAL_MEMORY=${EMSCRIPTEN_TOTAL_MEMORY}")
|
|
|
endif ()
|
|
endif ()
|
|
|
- set (${LINKER_FLAGS} "${${LINKER_FLAGS}} ${MEMORY_LINKER_FLAGS} -s USE_SDL=2") # Urho3D uses SDL2 so set it here instead of in the toolchain which potentially could be reused in other projects not using SDL2
|
|
|
|
|
|
|
+ set (${LINKER_FLAGS} "${${LINKER_FLAGS}} ${MEMORY_LINKER_FLAGS} -s USE_SDL=2 -s NO_EXIT_RUNTIME=1") # Urho3D uses SDL2 so set it here instead of in the toolchain which potentially could be reused in other projects not using SDL2
|
|
|
set (${LINKER_FLAGS}_RELEASE "-s AGGRESSIVE_VARIABLE_ELIMINATION=1") # Remove variables to make the -O3 regalloc easier
|
|
set (${LINKER_FLAGS}_RELEASE "-s AGGRESSIVE_VARIABLE_ELIMINATION=1") # Remove variables to make the -O3 regalloc easier
|
|
|
if (NOT DEFINED ENV{CI})
|
|
if (NOT DEFINED ENV{CI})
|
|
|
set (${LINKER_FLAGS}_DEBUG -g4) # Preserve LLVM debug information, show line number debug comments, and generate source maps
|
|
set (${LINKER_FLAGS}_DEBUG -g4) # Preserve LLVM debug information, show line number debug comments, and generate source maps
|