summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2019-08-05 14:00:15 +0100
committerRich Trott <rtrott@gmail.com>2019-08-20 11:43:47 -0700
commit32df017c5fa8de0b3070108b76be78e1ab18aeae (patch)
tree330ec8577b9dbbd63ed596497de047c966926461 /configure.py
parent3b929989185fc9e1d89ef07c612ee02b84800378 (diff)
downloadandroid-node-v8-32df017c5fa8de0b3070108b76be78e1ab18aeae.tar.gz
android-node-v8-32df017c5fa8de0b3070108b76be78e1ab18aeae.tar.bz2
android-node-v8-32df017c5fa8de0b3070108b76be78e1ab18aeae.zip
src: add large page support for macOS
Proposal to bring the support for this platform. We assume the pse36 cpu flag is present for 2MB large page support present in recent years in mac line (not to be backported to 10.x anyway). Recommended better for mac production servers rather than casual mac books. PR-URL: https://github.com/nodejs/node/pull/28977 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.py b/configure.py
index beab9ceccc..f1e09d9e98 100755
--- a/configure.py
+++ b/configure.py
@@ -1035,16 +1035,18 @@ def configure_node(o):
else:
o['variables']['node_use_dtrace'] = 'false'
- if options.node_use_large_pages and not flavor in ('linux', 'freebsd'):
+ if options.node_use_large_pages and not flavor in ('linux', 'freebsd', 'mac'):
raise Exception(
- 'Large pages are supported only on Linux Systems.')
- if options.node_use_large_pages and flavor in ('linux', 'freebsd'):
+ 'Large pages are supported only on Linux, FreeBSD and MacOS Systems.')
+ if options.node_use_large_pages and flavor in ('linux', 'freebsd', 'mac'):
if options.shared or options.enable_static:
raise Exception(
'Large pages are supported only while creating node executable.')
if target_arch!="x64":
raise Exception(
'Large pages are supported only x64 platform.')
+ if flavor == 'mac':
+ info('macOS server with 32GB or more is recommended')
if flavor == 'linux':
# Example full version string: 2.6.32-696.28.1.el6.x86_64
FULL_KERNEL_VERSION=os.uname()[2]