|
455 | 455 | dest='without_node_snapshot', |
456 | 456 | help='Turn off V8 snapshot integration. Currently experimental.') |
457 | 457 |
|
| 458 | +parser.add_option('--without-node-code-cache', |
| 459 | + action='store_true', |
| 460 | + dest='without_node_code_cache', |
| 461 | + help='Turn off V8 Code cache integration.') |
| 462 | + |
458 | 463 | intl_optgroup.add_option('--download', |
459 | 464 | action='store', |
460 | 465 | dest='download_list', |
@@ -980,6 +985,12 @@ def configure_node(o): |
980 | 985 | else: |
981 | 986 | o['variables']['node_use_node_snapshot'] = 'false' |
982 | 987 |
|
| 988 | + if not options.without_node_code_cache: |
| 989 | + # TODO(refack): fix this when implementing embedded code-cache when cross-compiling. |
| 990 | + o['variables']['node_use_node_code_cache'] = b(not cross_compiling) |
| 991 | + else: |
| 992 | + o['variables']['node_use_node_code_cache'] = 'false' |
| 993 | + |
983 | 994 | if target_arch == 'arm': |
984 | 995 | configure_arm(o) |
985 | 996 | elif target_arch in ('mips', 'mipsel', 'mips64el'): |
@@ -1100,9 +1111,7 @@ def configure_node(o): |
1100 | 1111 | o['variables']['debug_nghttp2'] = 'false' |
1101 | 1112 |
|
1102 | 1113 | o['variables']['node_no_browser_globals'] = b(options.no_browser_globals) |
1103 | | - # TODO(refack): fix this when implementing embedded code-cache when cross-compiling. |
1104 | | - if o['variables']['want_separate_host_toolset'] == 0: |
1105 | | - o['variables']['node_code_cache'] = 'yes' # For testing |
| 1114 | + |
1106 | 1115 | o['variables']['node_shared'] = b(options.shared) |
1107 | 1116 | node_module_version = getmoduleversion.get_version() |
1108 | 1117 |
|
|
0 commit comments