Update Emscripten build scripts.
GitOrigin-RevId: 2e92e3d3f6ef91ffe7dcf1a60a276c07c09035ca
This commit is contained in:
parent
4a0fcb95af
commit
b5ca70530e
@ -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")
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user