|
453 | 453 | dest='without_node_snapshot',
|
454 | 454 | help='Turn off V8 snapshot integration. Currently experimental.')
|
455 | 455 |
|
| 456 | +parser.add_option('--without-node-code-cache', |
| 457 | + action='store_true', |
| 458 | + dest='without_node_code_cache', |
| 459 | + help='Turn off V8 Code cache integration.') |
| 460 | + |
456 | 461 | intl_optgroup.add_option('--download',
|
457 | 462 | action='store',
|
458 | 463 | dest='download_list',
|
@@ -978,6 +983,12 @@ def configure_node(o):
|
978 | 983 | else:
|
979 | 984 | o['variables']['node_use_node_snapshot'] = 'false'
|
980 | 985 |
|
| 986 | + if not options.without_node_code_cache: |
| 987 | + # TODO(refack): fix this when implementing embedded code-cache when cross-compiling. |
| 988 | + o['variables']['node_use_node_code_cache'] = b(not cross_compiling) |
| 989 | + else: |
| 990 | + o['variables']['node_use_node_code_cache'] = 'false' |
| 991 | + |
981 | 992 | if target_arch == 'arm':
|
982 | 993 | configure_arm(o)
|
983 | 994 | elif target_arch in ('mips', 'mipsel', 'mips64el'):
|
@@ -1083,9 +1094,7 @@ def configure_node(o):
|
1083 | 1094 | o['variables']['debug_nghttp2'] = 'false'
|
1084 | 1095 |
|
1085 | 1096 | o['variables']['node_no_browser_globals'] = b(options.no_browser_globals)
|
1086 |
| - # TODO(refack): fix this when implementing embedded code-cache when cross-compiling. |
1087 |
| - if o['variables']['want_separate_host_toolset'] == 0: |
1088 |
| - o['variables']['node_code_cache'] = 'yes' # For testing |
| 1097 | + |
1089 | 1098 | o['variables']['node_shared'] = b(options.shared)
|
1090 | 1099 | node_module_version = getmoduleversion.get_version()
|
1091 | 1100 |
|
|
0 commit comments