Skip to content

Commit 0c73c9f

Browse files
committed
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). PR-URL: #7258 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 05de4d7 commit 0c73c9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/node.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3359,11 +3359,15 @@ static bool ParseDebugOpt(const char* arg) {
33593359
PrintHelp();
33603360
exit(12);
33613361
}
3362+
#if HAVE_INSPECTOR
33623363
if (use_inspector) {
33633364
inspector_port = port_int;
33643365
} else {
3366+
#endif
33653367
debug_port = port_int;
3368+
#if HAVE_INSPECTOR
33663369
}
3370+
#endif
33673371
}
33683372

33693373
return true;

0 commit comments

Comments
 (0)