diff options
author | Jonah Snider <jonah@jonahsnider.com> | 2021-12-05 13:23:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-05 13:23:25 +0300 |
commit | 6ef6bdf1fd195572355461ec438a8258df5dbd59 (patch) | |
tree | 72ca0985b4e89bf232dd147075adced45f5afe0f /configure.py | |
parent | 147d23b2116394c5ed183217723ee3025f8ef99b (diff) |
build: add `--without-corepack`
PR-URL: https://github.com/nodejs/node/pull/41060
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.py b/configure.py index 77995d09cba..991da107f62 100755 --- a/configure.py +++ b/configure.py @@ -641,6 +641,12 @@ parser.add_argument('--without-npm', default=None, help='do not install the bundled npm (package manager)') +parser.add_argument('--without-corepack', + action='store_true', + dest='without_corepack', + default=None, + help='do not install the bundled Corepack') + # Dummy option for backwards compatibility parser.add_argument('--without-report', action='store_true', @@ -1154,6 +1160,7 @@ def configure_node(o): o['variables']['OS'] = 'android' o['variables']['node_prefix'] = options.prefix o['variables']['node_install_npm'] = b(not options.without_npm) + o['variables']['node_install_corepack'] = b(not options.without_corepack) o['variables']['debug_node'] = b(options.debug_node) o['default_configuration'] = 'Debug' if options.debug else 'Release' o['variables']['error_on_warn'] = b(options.error_on_warn) |