Skip to content
Closed
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
src: fix --without-inspector build
`use_inspector` is not available if `HAVE_INSPECTOR` is false.
Before this commit, one usage of it would show up as an undeclared
identifier (introduced in a766ebf).
  • Loading branch information
addaleax committed Jun 10, 2016
commit a5ec950f19d01abf555806dff8ff977792cf1c7c
4 changes: 4 additions & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3358,11 +3358,15 @@ static bool ParseDebugOpt(const char* arg) {
PrintHelp();
exit(12);
}
#if HAVE_INSPECTOR
if (use_inspector) {
inspector_port = port_int;
} else {
#endif
debug_port = port_int;
#if HAVE_INSPECTOR
}
#endif
}

return true;
Expand Down