diff options
author | Bartosz Sosnowski <bartosz@janeasystems.com> | 2018-06-06 18:22:50 +0200 |
---|---|---|
committer | Bartosz Sosnowski <bartosz@janeasystems.com> | 2018-06-27 11:00:56 +0200 |
commit | 7c452845b8d44287f5db96a7f19e7d395e1899ab (patch) | |
tree | c382c10e329a2ad039c8dc162f93989be953eede /configure | |
parent | 8d33bbf16807e9219809f9528e8884a1c0a98277 (diff) | |
download | android-node-v8-7c452845b8d44287f5db96a7f19e7d395e1899ab.tar.gz android-node-v8-7c452845b8d44287f5db96a7f19e7d395e1899ab.tar.bz2 android-node-v8-7c452845b8d44287f5db96a7f19e7d395e1899ab.zip |
build, win: make LTCG optional
Disables Link Time Code Generation by default. Adds ‘ltcg’ vcbuild
option to enable it. LTCG will be used by default by release and CI
builds.
PR-URL: https://github.com/nodejs/node/pull/21186
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -425,6 +425,11 @@ intl_optgroup.add_option('--with-icu-source', dest='with_icu_source', help='Intl mode: optional local path to icu/ dir, or path/URL of icu source archive.') +parser.add_option('--with-ltcg', + action='store_true', + dest='with_ltcg', + help='Use Link Time Code Generation. This feature is only available on Windows.') + intl_optgroup.add_option('--download', action='store', dest='download_list', @@ -953,6 +958,10 @@ def configure_node(o): else: o['variables']['node_use_perfctr'] = 'false' + o['variables']['node_with_ltcg'] = b(options.with_ltcg) + if flavor != 'win' and options.with_ltcg: + raise Exception('Link Time Code Generation is only supported on Windows.') + if options.tag: o['variables']['node_tag'] = '-' + options.tag else: |