mirror of https://github.com/nodejs/node.git
build: only generate specified build type files
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 <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>pull/53488/head
parent
d335487e3f
commit
6cb940a546
|
@ -2253,7 +2253,7 @@ if flavor == 'win' and python.lower().endswith('.exe'):
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue