Update Emscripten build scripts.

GitOrigin-RevId: 2e92e3d3f6ef91ffe7dcf1a60a276c07c09035ca
This commit is contained in:
levlam 2018-12-24 04:10:26 +03:00
parent 4a0fcb95af
commit b5ca70530e
2 changed files with 4 additions and 4 deletions

View File

@ -89,8 +89,8 @@ if (EMSCRIPTEN)
if (ASMJS)
set(TD_EMSCRIPTEN td_asmjs)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s WASM=0")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s WASM=0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s WASM=0 -Wno-almost-asm")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s WASM=0 -Wno-almost-asm")
else()
set(TD_EMSCRIPTEN td_wasm)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s WASM=1")

View File

@ -2,5 +2,5 @@
DEST=tdweb/src/prebuilt/release/
mkdir -p $DEST
cp build/wasm/td_wasm.{js,wasm} $DEST
cp build/asmjs/td_asmjs.js{,.mem} $DEST
cp build/wasm/td_wasm.js build/wasm/td_wasm.wasm $DEST
cp build/asmjs/td_asmjs.js build/asmjs/td_asmjs.js.mem $DEST