| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 933ff62 commit e562727
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -248,6 +248,11 @@ parser.add_option('--release-urlbase', | |||
| 248 | 248 | '`sourceUrl` and `headersUrl`. When compiling a release build, this ' | |
| 249 | 249 | 'will default to https://nodejs.org/download/release/') | |
| 250 | 250 | ||
| 251 | + parser.add_option('--enable-d8', | ||
| 252 | + action='store_true', | ||
| 253 | + dest='enable_d8', | ||
| 254 | + help=optparse.SUPPRESS_HELP) # Unsupported, undocumented. | ||
| 255 | + | ||
| 251 | 256 | parser.add_option('--v8-options', | |
| 252 | 257 | action='store', | |
| 253 | 258 | dest='v8_options', | |
@@ -835,8 +840,6 @@ def configure_node(o): | |||
| 835 | 840 | ||
| 836 | 841 | o['variables']['node_no_browser_globals'] = b(options.no_browser_globals) | |
| 837 | 842 | o['variables']['node_shared'] = b(options.shared) | |
| 838 | - o['variables']['node_use_v8_platform'] = b(not options.without_v8_platform) | ||
| 839 | - o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8) | ||
| 840 | 843 | o['variables']['node_module_version'] = int(getmoduleversion.get_version()) | |
| 841 | 844 | ||
| 842 | 845 | if options.linked_module: | |
@@ -884,6 +887,14 @@ def configure_v8(o): | |||
| 884 | 887 | o['variables']['v8_optimized_debug'] = 0 # Compile with -O0 in debug builds. | |
| 885 | 888 | o['variables']['v8_random_seed'] = 0 # Use a random seed for hash tables. | |
| 886 | 889 | o['variables']['v8_use_snapshot'] = 'false' if options.without_snapshot else 'true' | |
| 890 | + o['variables']['node_use_v8_platform'] = b(not options.without_v8_platform) | ||
| 891 | + o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8) | ||
| 892 | + o['variables']['node_enable_d8'] = b(options.enable_d8) | ||
| 893 | + if options.enable_d8: | ||
| 894 | + o['variables']['test_isolation_mode'] = 'noop' # Needed by d8.gyp. | ||
| 895 | + if options.without_bundled_v8 and options.enable_d8: | ||
| 896 | + raise Exception('--enable-d8 is incompatible with --without-bundled-v8.') | ||
| 897 | + | ||
| 887 | 898 | ||
| 888 | 899 | def configure_openssl(o): | |
| 889 | 900 | o['variables']['node_use_openssl'] = b(not options.without_ssl) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -248,6 +248,9 @@ | |||
| 248 | 248 | }] | |
| 249 | 249 | ], | |
| 250 | 250 | }], | |
| 251 | + [ 'node_enable_d8=="true"', { | ||
| 252 | + 'dependencies': [ 'deps/v8/src/d8.gyp:d8' ], | ||
| 253 | + }], | ||
| 251 | 254 | [ 'node_use_bundled_v8=="true"', { | |
| 252 | 255 | 'include_dirs': [ | |
| 253 | 256 | 'deps/v8', # include/v8_platform.h | |
| Back | FazBrowse Home | New Git URL |
0 commit comments