diff --git a/common.gypi b/common.gypi index 2496155cf93a34..b03e0a07ee9ab5 100644 --- a/common.gypi +++ b/common.gypi @@ -17,6 +17,7 @@ 'node_use_bundled_v8%': 'true', 'node_module_version%': '', 'node_with_ltcg%': '', + 'node_use_pch%': 'false', 'node_tag%': '', 'uv_library%': 'static_library', diff --git a/configure b/configure index 068fb8a76999a1..f89812cc94819d 100755 --- a/configure +++ b/configure @@ -438,6 +438,11 @@ parser.add_option('--with-ltcg', dest='with_ltcg', help='Use Link Time Code Generation. This feature is only available on Windows.') +parser.add_option('--with-pch', + action='store_true', + dest='with_pch', + help='Use Precompiled Headers (only available on Windows).') + intl_optgroup.add_option('--download', action='store', dest='download_list', @@ -995,6 +1000,11 @@ def configure_node(o): if flavor != 'win' and options.with_ltcg: raise Exception('Link Time Code Generation is only supported on Windows.') + if flavor == 'win': + o['variables']['node_use_pch'] = b(options.with_pch) + else: + o['variables']['node_use_pch'] = 'false' + if options.tag: o['variables']['node_tag'] = '-' + options.tag else: diff --git a/deps/v8/gypfiles/v8.gyp b/deps/v8/gypfiles/v8.gyp index 99f868d1d38077..277488b74a0b35 100644 --- a/deps/v8/gypfiles/v8.gyp +++ b/deps/v8/gypfiles/v8.gyp @@ -1796,10 +1796,20 @@ 'gyp_generators': '