diff options
author | João Reis <reis@janeasystems.com> | 2018-07-11 22:25:18 +0100 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-07-27 00:43:43 -0700 |
commit | 48e5b350b3dd236353e3e8e1196a09f5c5bcda77 (patch) | |
tree | 20927e0bcdb88fa5abd3f14c06ae532aa740c93e /configure | |
parent | 186c2fb6d88c473c6b811f36c87656785131b2d7 (diff) | |
download | android-node-v8-48e5b350b3dd236353e3e8e1196a09f5c5bcda77.tar.gz android-node-v8-48e5b350b3dd236353e3e8e1196a09f5c5bcda77.tar.bz2 android-node-v8-48e5b350b3dd236353e3e8e1196a09f5c5bcda77.zip |
build,win,v8: allow precompiling objects-inl.h
This makes compiling v8_base much faster on Windows.
Sharding is disabled because the header would have to be precompiled
for each shard but is only once. The library is much smaller, so
sharding is unnecessary.
This is enabled by default, but disabled for CI and releases.
PR-URL: https://github.com/nodejs/node/pull/21772
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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: |