fix: clang variable configuration in generated node headers (#44189)

* fix: clang variable configuration in generated node headers

* chore: restore value in common.gypi
This commit is contained in:
Robo 2024-10-11 23:22:56 +09:00 committed by GitHub
parent 8201623d92
commit dd5b36f557
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 29 additions and 0 deletions

View file

@ -61,6 +61,10 @@ def main(target_file, target_cpu):
v['node_module_version'] = int(args['node_module_version'])
# Used by certain versions of node-gyp.
v['build_v8_with_gn'] = 'false'
# Enable clang conditionally based on target platform
# in common.gypi
if 'clang' in v:
del v['clang']
with open(target_file, 'w+', encoding='utf-8') as file_out:
file_out.write(pprint.pformat(config, indent=2))