diff --git a/cibuild/linkweb.sh b/cibuild/linkweb.sh index c68484e1..1bd75e75 100755 --- a/cibuild/linkweb.sh +++ b/cibuild/linkweb.sh @@ -100,7 +100,7 @@ pushd src/backend then # es6 MODULE="$LDEBUG --closure 0 -sMODULARIZE=1 -sEXPORT_ES6=1 -sEXPORT_NAME=Module" - export COPTS="-O2 -g0" + export COPTS="-Os -g3" else export COPTS="-O0 -g3" # local debug always fast build diff --git a/patches/pg_main.c b/patches/pg_main.c index 4ac51bec..de0faea1 100644 --- a/patches/pg_main.c +++ b/patches/pg_main.c @@ -1006,7 +1006,7 @@ extra_env:; console.warn("prerun(C-node) worker=", Module.is_worker); #endif Module['postMessage'] = function custom_postMessage(event) { - console.log("# 1252: onCustomMessage:",__FILE__, event); + console.log("# 1009: onCustomMessage:", event); }; }); @@ -1035,19 +1035,10 @@ extra_env:; #endif Module['postMessage'] = function custom_postMessage(event) { switch (event.type) { - case "raw" : { - stringToUTF8( event.data, shm_rawinput, Module.FD_BUFFER_MAX); - break; - } - case "stdin" : { stringToUTF8( event.data, 1, Module.FD_BUFFER_MAX); break; } - case "rcon" : { - stringToUTF8( event.data, shm_rcon, Module.FD_BUFFER_MAX); - break; - } default : console.warn("custom_postMessage?", event); } };