Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test opts #443

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cibuild/linkweb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 1 addition & 10 deletions patches/pg_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
});

Expand Down Expand Up @@ -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);
}
};
Expand Down
Loading