summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBartosz Sosnowski <bartosz@janeasystems.com>2018-06-06 18:22:50 +0200
committerBartosz Sosnowski <bartosz@janeasystems.com>2018-06-27 11:00:56 +0200
commit7c452845b8d44287f5db96a7f19e7d395e1899ab (patch)
treec382c10e329a2ad039c8dc162f93989be953eede /configure
parent8d33bbf16807e9219809f9528e8884a1c0a98277 (diff)
downloadandroid-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-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index f72e9123b9..1b3ff0162f 100755
--- a/configure
+++ b/configure
@@ -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: