-
Notifications
You must be signed in to change notification settings - Fork 686
Add a port setting to build script #1599
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
Conversation
tools/build.py
Outdated
| build_options.append('-DFEATURE_PROFILE=%s' % PROFILE) | ||
|
|
||
| build_options.append('-DFEATURE_DEBUGGER=%s' % arguments.jerry_debugger) | ||
| build_options.append('-DJERRY_DEBUGGER_PORT=%s' % arguments.jerry_debugger_port) |
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.
set FEATURE_DEBUGGER_PORT here.
jerry-core/CMakeLists.txt
Outdated
| # Status messages | ||
| message(STATUS "FEATURE_CPOINTER_32_BIT " ${FEATURE_CPOINTER_32_BIT}) | ||
| message(STATUS "FEATURE_DEBUGGER " ${FEATURE_DEBUGGER}) | ||
| message(STATUS "FEATURE_DEBUGGER_PORT " ${JERRY_DEBUGGER_PORT}) |
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.
${FEATURE_DEBUGGER_PORT}
jerry-core/CMakeLists.txt
Outdated
| endif() | ||
|
|
||
| # Debugger port | ||
| set(DEFINES_JERRY ${DEFINES_JERRY} JERRY_DEBUGGER_PORT=${JERRY_DEBUGGER_PORT}) |
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.
${FEATURE_DEBUGGER_PORT}
725a12b to
3f88569
Compare
tools/build.py
Outdated
| build_options.append('-DFEATURE_PROFILE=%s' % PROFILE) | ||
|
|
||
| build_options.append('-DFEATURE_DEBUGGER=%s' % arguments.jerry_debugger) | ||
| build_options.append('-DFEATURE_DEBUGGER_PORT=%s' % arguments.jerry_debugger_port) |
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.
Use '%d' here instead '%s'.
890c715 to
05dfb55
Compare
LaszloLango
left a comment
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
|
LGTM (informally) |
zherczeg
left a comment
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 after a minor fix.
jerry-core/CMakeLists.txt
Outdated
| # Optional features | ||
| set(FEATURE_CPOINTER_32_BIT OFF CACHE BOOL "Enable 32 bit compressed pointers?") | ||
| set(FEATURE_DEBUGGER OFF CACHE BOOL "Enable JerryScript debugger?") | ||
| set(FEATURE_DEBUGGER_PORT "5001" CACHE STRING "Use default or other port number?") |
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.
Set debugger port number (default: 5001).
JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu
05dfb55 to
d91727d
Compare
JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu