Skip to content

Commit fd6368b

Browse files
fix inconsistency in variables
1 parent b372083 commit fd6368b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

common.gypi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@
311311
'/Zm2000',
312312
],
313313
}],
314-
['cfg=="true"', {
314+
['control_flow_guard=="true"', {
315315
'AdditionalOptions': [
316316
'/guard:cf', # Control Flow Guard
317317
],
@@ -342,7 +342,7 @@
342342
['target_arch=="arm64"', {
343343
'TargetMachine' : 0, # NotSet. MACHINE:ARM64 is inferred from the input files.
344344
}],
345-
['cfg=="true"', {
345+
['control_flow_guard=="true"', {
346346
'AdditionalOptions': [
347347
'/guard:cf', # Control Flow Guard
348348
],

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ def configure_node(o):
14491449
o['variables']['node_prefix'] = options.prefix
14501450
o['variables']['node_install_npm'] = b(not options.without_npm)
14511451
o['variables']['node_install_corepack'] = b(not options.without_corepack)
1452-
o['variables']['cfg'] = b(options.enable_cfg)
1452+
o['variables']['control_flow_guard'] = b(options.enable_cfg)
14531453
o['variables']['node_use_amaro'] = b(not options.without_amaro)
14541454
o['variables']['debug_node'] = b(options.debug_node)
14551455
o['default_configuration'] = 'Debug' if options.debug else 'Release'

vcbuild.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ if defined no_shared_roheap set configure_flags=%configure_flags% --disable-shar
212212
if defined DEBUG_HELPER set configure_flags=%configure_flags% --verbose
213213
if defined ccache_path set configure_flags=%configure_flags% --use-ccache-win
214214
if defined compile_commands set configure_flags=%configure_flags% -C
215-
if defined cfg set configure_flags=%configure_flags% --cfg
215+
if defined cfg set configure_flags=%configure_flags% --control-flow-guard
216216

217217
if "%target_arch%"=="x86" (
218218
echo "32-bit Windows builds are not supported anymore."

0 commit comments

Comments
 (0)