Skip to content

Commit 1aec67c

Browse files
committed
fixup
Signed-off-by: Paolo Insogna <[email protected]>
1 parent 954d4b4 commit 1aec67c

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

common.gypi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'python%': 'python',
1616

1717
'node_shared%': 'false',
18-
'node_enable_experimentals%': 0,
18+
'node_enable_experimentals%': 'false',
1919
'force_dynamic_crt%': 0,
2020
'node_use_v8_platform%': 'true',
2121
'node_use_bundled_v8%': 'true',
@@ -438,8 +438,8 @@
438438
}],
439439
# The defines bellow must include all things from the external_v8_defines
440440
# list in v8/BUILD.gn.
441-
['node_enable_experimentals==1', {
442-
'defines': ['NODE_ENABLE_EXPERIMENTALS'],
441+
['node_enable_experimentals == "true"', {
442+
'defines': ['EXPERIMENTALS_DEFAULT_VALUE=true'],
443443
}],
444444
['v8_enable_v8_checks == 1', {
445445
'defines': ['V8_ENABLE_CHECKS'],

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,7 @@ def configure_node_cctest_sources(o):
18091809
def configure_node(o):
18101810
if options.dest_os == 'android':
18111811
o['variables']['OS'] = 'android'
1812-
o['variables']['node_enable_experimentals'] = B(options.enable_all_experimentals)
1812+
o['variables']['node_enable_experimentals'] = b(options.enable_all_experimentals)
18131813
o['variables']['node_prefix'] = options.prefix
18141814
o['variables']['node_install_npm'] = b(not options.without_npm)
18151815
o['variables']['node_install_corepack'] = b(options.with_corepack)

src/node_options.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ class DebugOptions : public Options {
112112
std::vector<std::string>* argv) override;
113113
};
114114

115-
#ifdef NODE_ENABLE_EXPERIMENTALS
116-
#define EXPERIMENTALS_DEFAULT_VALUE true
117-
#else
115+
#ifndef EXPERIMENTALS_DEFAULT_VALUE
118116
#define EXPERIMENTALS_DEFAULT_VALUE false
119117
#endif
120118

0 commit comments

Comments
 (0)