summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2019-08-02 11:57:02 +0100
committerRich Trott <rtrott@gmail.com>2019-08-19 21:20:18 -0700
commit0d7acfac82a20fceb7aa91c61abc18b711edba28 (patch)
tree08bab1f1ec33bc8dfa02338b0b7cf5a573250894 /configure.py
parentea765eba2055132bfe42bd27caf970f4c169eca5 (diff)
downloadnode-new-0d7acfac82a20fceb7aa91c61abc18b711edba28.tar.gz
build: enable linux large pages LLVM lld linkage support
The custom linker script is compatible with GNU ld only. As such, providin a new expliciting option to redirect to a different one. lld seems unable to migrate this large section w/o segfaulting so providing only the base address anchor for now. PR-URL: https://github.com/nodejs/node/pull/28938 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 3d752f434b..beab9ceccc 100755
--- a/configure.py
+++ b/configure.py
@@ -401,6 +401,11 @@ parser.add_option('--use-largepages',
help='build with Large Pages support. This feature is supported only on Linux kernel' +
'>= 2.6.38 with Transparent Huge pages enabled and FreeBSD')
+parser.add_option('--use-largepages-script-lld',
+ action='store_true',
+ dest='node_use_large_pages_script_lld',
+ help='link against the LLVM ld linker script. Implies -fuse-ld=lld in the linker flags')
+
intl_optgroup.add_option('--with-intl',
action='store',
dest='with_intl',
@@ -1048,6 +1053,7 @@ def configure_node(o):
raise Exception(
'Large pages need Linux kernel version >= 2.6.38')
o['variables']['node_use_large_pages'] = b(options.node_use_large_pages)
+ o['variables']['node_use_large_pages_script_lld'] = b(options.node_use_large_pages_script_lld)
if options.no_ifaddrs:
o['defines'] += ['SUNOS_NO_IFADDRS']