From d70258e5c412ab8ad1e3135d03bdbdd2d5fdde1e Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Sat, 22 Jun 2024 09:36:36 +0100 Subject: [PATCH] build: only generate specified build type files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Release and Debug build configurations can not be shared, only generate specified configuration in `configure`. PR-URL: https://github.com/nodejs/node/pull/53511 Fixes: https://github.com/nodejs/node/issues/53446 Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca Reviewed-By: Joyee Cheung --- configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.py b/configure.py index f5b04924695559..3431508b36aa55 100755 --- a/configure.py +++ b/configure.py @@ -2253,7 +2253,7 @@ def make_bin_override(): gyp_args += ['-Dpython=' + python] if options.use_ninja: - gyp_args += ['-f', 'ninja-' + flavor] + gyp_args += ['-f', 'ninja-' + flavor, '-G', 'config=' + config['BUILDTYPE']] elif flavor == 'win' and sys.platform != 'msys': gyp_args += ['-f', 'msvs', '-G', 'msvs_version=auto'] else: