Skip to content

Commit 38d36e3

Browse files
addaleaxFishrock123
authored andcommitted
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 <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 7da8a41 commit 38d36e3

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
@@ -3443,11 +3443,15 @@ static bool ParseDebugOpt(const char* arg) {
34433443
PrintHelp();
34443444
exit(12);
34453445
}
3446+
#if HAVE_INSPECTOR
34463447
if (use_inspector) {
34473448
inspector_port = port_int;
34483449
} else {
3450+
#endif
34493451
debug_port = port_int;
3452+
#if HAVE_INSPECTOR
34503453
}
3454+
#endif
34513455
}
34523456

34533457
return true;

0 commit comments

Comments
 (0)