diff --git a/CMakeLists.txt b/CMakeLists.txt index f591dab2..9ba2bd13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,10 @@ cmake_minimum_required(VERSION 3.6) -set(ASYNCIFY OFF) -set(EMTERPRETIFY ON) +set(ASYNCIFY ON) +set(EMTERPRETIFY OFF) if(${EMSCRIPTEN}) - set(OPT_FLAG "-O3") + set(OPT_FLAG "-Oz") set(USE_PORTS "-s USE_ZLIB=1") set(CMAKE_C_FLAGS "${OPT_FLAG} -w -Werror=return-type ${USE_PORTS}") set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${USE_PORTS}") @@ -30,7 +30,7 @@ if(${EMSCRIPTEN}) add_definitions(-DEMSCRIPTEN) if(ASYNCIFY) - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s ASYNCIFY") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s ASYNCIFY -s ASYNCIFY_WHITELIST=@${CMAKE_CURRENT_LIST_DIR}/js-dos-cpp/asyncify.txt") # -s ASYNCIFY_IGNORE_INDIRECT \ elseif(EMTERPRETIFY) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s EMTERPRETIFY=1 -s EMTERPRETIFY_ASYNC=1 -s EMTERPRETIFY_WHITELIST=@${CMAKE_CURRENT_LIST_DIR}/js-dos-cpp/emterpretify.txt") diff --git a/dist/docs/api/js-dos-ts/js-dos-build.md b/dist/docs/api/js-dos-ts/js-dos-build.md index b8000c41..5433328e 100644 --- a/dist/docs/api/js-dos-ts/js-dos-build.md +++ b/dist/docs/api/js-dos-ts/js-dos-build.md @@ -20,11 +20,11 @@ gulpfile.js --> generateBuildInfo ``` export const Build = { - version: "6.22.30 (a7b59eaf2e131f1b5328a04f3c33a613)", - jsVersion: "7a9b47b1c3ba95d95d4d2bb58b9248ae603f7479", - jsSize: 502767, - wasmVersion: "8ec72e090a255b8554388f6b0d12602c", - wasmSize: 2297225, + version: "6.22.31 (d0c777fff2df3c2553a8b769a86eca06)", + jsVersion: "b0eefc097d2c5270a1a463700335826f156460ea", + jsSize: 196977, + wasmVersion: "03ff8f9208bc11b041bebc7cce39e56d", + wasmSize: 1810179, }; diff --git a/js-dos-ts/js-dos-build.ts b/js-dos-ts/js-dos-build.ts index b5524a37..76dc098b 100644 --- a/js-dos-ts/js-dos-build.ts +++ b/js-dos-ts/js-dos-build.ts @@ -3,9 +3,9 @@ // gulpfile.js --> generateBuildInfo export const Build = { - version: "6.22.30 (a7b59eaf2e131f1b5328a04f3c33a613)", - jsVersion: "7a9b47b1c3ba95d95d4d2bb58b9248ae603f7479", - jsSize: 502767, - wasmVersion: "8ec72e090a255b8554388f6b0d12602c", - wasmSize: 2297225, + version: "6.22.31 (d0c777fff2df3c2553a8b769a86eca06)", + jsVersion: "b0eefc097d2c5270a1a463700335826f156460ea", + jsSize: 196977, + wasmVersion: "03ff8f9208bc11b041bebc7cce39e56d", + wasmSize: 1810179, }; diff --git a/package.json b/package.json index 5a832135..11ed0e65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "js-dos", - "version": "6.22.30", + "version": "6.22.31", "description": "Easiest API to run dos programs in browser", "main": "dist/js-dos.js", "types": "dist/typescript/js-dos.ts",