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:
parent
8201623d92
commit
dd5b36f557
3 changed files with 29 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue