Skip to content

Commit 765c375

Browse files
committed
build: make --without-report a no-op
This commit makes the configure --without-report flag a no-op. This commit also updates a test that depends on the report CLI flags being conditionally present. PR-URL: nodejs#32242 Fixes: nodejs#26293 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent f1d3d92 commit 765c375

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

configure.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -538,12 +538,12 @@
538538
dest='without_npm',
539539
help='do not install the bundled npm (package manager)')
540540

541+
# Dummy option for backwards compatibility
541542
parser.add_option('--without-report',
542543
action='store_true',
543-
dest='without_report',
544-
help='build without report')
544+
dest='unused_without_report',
545+
help=optparse.SUPPRESS_HELP)
545546

546-
# Dummy option for backwards compatibility
547547
parser.add_option('--with-snapshot',
548548
action='store_true',
549549
dest='unused_with_snapshot',
@@ -1004,7 +1004,6 @@ def configure_node(o):
10041004
o['variables']['OS'] = 'android'
10051005
o['variables']['node_prefix'] = options.prefix
10061006
o['variables']['node_install_npm'] = b(not options.without_npm)
1007-
o['variables']['node_report'] = b(not options.without_report)
10081007
o['variables']['debug_node'] = b(options.debug_node)
10091008
o['default_configuration'] = 'Debug' if options.debug else 'Release'
10101009

test/parallel/test-process-env-allowed-flags-are-documented.js

-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ const conditionalOpts = [
5959
filter: (opt) => opt === '--icu-data-dir' },
6060
{ include: process.features.inspector,
6161
filter: (opt) => opt.startsWith('--inspect') || opt === '--debug-port' },
62-
{ include: process.config.variables.node_report,
63-
filter: (opt) => opt.includes('-report') },
6462
];
6563
documented.forEach((opt) => {
6664
conditionalOpts.forEach(({ include, filter }) => {

0 commit comments

Comments
 (0)