-
Notifications
You must be signed in to change notification settings - Fork 683
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
@@ -119,6 +120,7 @@ def generate_build_options(arguments): | |||
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
@@ -40,6 +41,7 @@ endif() | |||
# 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
@@ -175,6 +177,9 @@ if(FEATURE_DEBUGGER) | |||
set(DEFINES_JERRY ${DEFINES_JERRY} JERRY_DEBUGGER) | |||
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
@@ -119,6 +120,7 @@ def generate_build_options(arguments): | |||
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
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) |
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
@@ -19,6 +19,7 @@ project (${JERRY_CORE_NAME} C) | |||
# 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 [email protected]
05dfb55
to
d91727d
Compare
JerryScript-DCO-1.0-Signed-off-by: Levente Orban [email protected]