-
Notifications
You must be signed in to change notification settings - Fork 439
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
debugger: Disable code if not desired #1798
debugger: Disable code if not desired #1798
Conversation
b5999e2
to
bb16678
Compare
This part is not as critical for TizenRT, but will help to make iotjs smaller. Thanks-to: Daeyeon Jeong <daeyeon.jeong@samsung.com> Relate-to: jerryscript-project#1795 Forwarded: jerryscript-project#1798 IoT.js-DCO-1.0-Signed-off-by: Philippe Coval p.coval@samsung.com
bb16678
to
8ddacdb
Compare
This part is not as critical for TizenRT, but will help to make iotjs smaller. Thanks-to: Daeyeon Jeong daeyeon.jeong@samsung.com Relate-to: jerryscript-project#1795 Forwarded: jerryscript-project#1798 IoT.js-DCO-1.0-Signed-off-by: Philippe Coval p.coval@samsung.com
8ddacdb
to
fe96267
Compare
This part is not as critical for TizenRT, but will help to make iotjs smaller. Thanks-to: Daeyeon Jeong daeyeon.jeong@samsung.com Relate-to: jerryscript-project#1795 Forwarded: jerryscript-project#1798 IoT.js-DCO-1.0-Signed-off-by: Philippe Coval p.coval@samsung.com
fe96267
to
b9c7d57
Compare
This part is not as critical for TizenRT, but will help to make iotjs smaller. Thanks-to: Daeyeon Jeong daeyeon.jeong@samsung.com Relate-to: jerryscript-project#1795 Forwarded: jerryscript-project#1798 IoT.js-DCO-1.0-Signed-off-by: Philippe Coval p.coval@samsung.com
b9c7d57
to
ffb9eec
Compare
This part is not as critical for TizenRT, but will help to make iotjs smaller. Thanks-to: Daeyeon Jeong daeyeon.jeong@samsung.com Relate-to: jerryscript-project#1795 Forwarded: jerryscript-project#1798 IoT.js-DCO-1.0-Signed-off-by: Philippe Coval p.coval@samsung.com
This part is not as critical for TizenRT, but will help to make iotjs smaller. Thanks-to: Daeyeon Jeong daeyeon.jeong@samsung.com Relate-to: jerryscript-project#1795 Forwarded: jerryscript-project#1798 IoT.js-DCO-1.0-Signed-off-by: Philippe Coval p.coval@samsung.com
src/modules/iotjs_module_process.c
Outdated
@@ -383,10 +390,12 @@ jerry_value_t InitProcess() { | |||
// Set iotjs | |||
SetProcessIotjs(process); | |||
bool wait_source = false; | |||
#ifdef JERRY_DEBUGGER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO, this way would be better:
#ifdef JERRY_DEBUGGER
bool wait_source = false;
if (iotjs_environment_config(iotjs_environment_get())->debugger != NULL) {
wait_source = iotjs_environment_config(iotjs_environment_get())
->debugger->wait_source;
}
if (!wait_source) {
SetProcessArgv(process);
}
#else
SetProcessArgv(process);
#endif
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isnt compiler figuring it out itself and strip that unused var ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this same var is used just after so I prefer to declare it false that duplicating the 2 lines
I assume compiler is smart enough to generate the same binary.
Please squash the commits into one. |
ffb9eec
to
180a9e3
Compare
Observed build issue on TizenRT (2.0+): iotjs.c:58: undefined reference to `jerryx_debugger_tcp_create' iotjs.c:59: undefined reference to `jerryx_debugger_ws_create' iotjs.c:58: undefined reference to `jerryx_debugger_after_connect' The whole part is disabled, even if only jerry-ext functions are not linked. This should not cause any issue on earlier versions of TizenRT debugger: Disable code if not desired This part is not as critical for TizenRT, but will help to make iotjs smaller. Thanks-to: Daeyeon Jeong daeyeon.jeong@samsung.com Relate-to: jerryscript-project#1795 Forwarded: jerryscript-project#1798 IoT.js-DCO-1.0-Signed-off-by: Philippe Coval p.coval@samsung.com
180a9e3
to
3b72964
Compare
Observed build issue on TizenRT (2.0+): iotjs.c:58: undefined reference to `jerryx_debugger_tcp_create' iotjs.c:59: undefined reference to `jerryx_debugger_ws_create' iotjs.c:58: undefined reference to `jerryx_debugger_after_connect' The whole part is disabled, even if only jerry-ext functions are not linked. This should not cause any issue on earlier versions of TizenRT debugger: Disable code if not desired This part is not as critical for TizenRT, but will help to make iotjs smaller. Thanks-to: Daeyeon Jeong daeyeon.jeong@samsung.com Relate-to: jerryscript-project#1795 Forwarded: jerryscript-project#1798 IoT.js-DCO-1.0-Signed-off-by: Philippe Coval p.coval@samsung.com
Observed build issue on TizenRT (2.0+): iotjs.c:58: undefined reference to `jerryx_debugger_tcp_create' iotjs.c:59: undefined reference to `jerryx_debugger_ws_create' iotjs.c:58: undefined reference to `jerryx_debugger_after_connect' The whole part is disabled, even if only jerry-ext functions are not linked. This should not cause any issue on earlier versions of TizenRT debugger: Disable code if not desired This part is not as critical for TizenRT, but will help to make iotjs smaller. Thanks-to: Daeyeon Jeong daeyeon.jeong@samsung.com Relate-to: jerryscript-project#1795 Forwarded: jerryscript-project#1798 IoT.js-DCO-1.0-Signed-off-by: Philippe Coval p.coval@samsung.com
3b72964
to
f5f3362
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This part is not as critical for TizenRT,
but will help to make iotjs smaller.
Thanks-to: Daeyeon Jeong daeyeon.jeong@samsung.com
Relate-to: #1795
IoT.js-DCO-1.0-Signed-off-by: Philippe Coval p.coval@samsung.com