|
404 | 404 | dest='with_etw', |
405 | 405 | help='build with ETW (default is true on Windows)') |
406 | 406 |
|
407 | | -parser.add_option('--use-largepages', |
408 | | - action='store_true', |
409 | | - dest='node_use_large_pages', |
410 | | - help='build with Large Pages support. This feature is supported only on Linux kernel' + |
411 | | - '>= 2.6.38 with Transparent Huge pages enabled and FreeBSD') |
412 | | - |
413 | | -parser.add_option('--use-largepages-script-lld', |
414 | | - action='store_true', |
415 | | - dest='node_use_large_pages_script_lld', |
416 | | - help='link against the LLVM ld linker script. Implies -fuse-ld=lld in the linker flags') |
417 | | - |
418 | 407 | intl_optgroup.add_option('--with-intl', |
419 | 408 | action='store', |
420 | 409 | dest='with_intl', |
@@ -1068,28 +1057,6 @@ def configure_node(o): |
1068 | 1057 | else: |
1069 | 1058 | o['variables']['node_use_dtrace'] = 'false' |
1070 | 1059 |
|
1071 | | - if options.node_use_large_pages and not flavor in ('linux', 'freebsd', 'mac'): |
1072 | | - raise Exception( |
1073 | | - 'Large pages are supported only on Linux, FreeBSD and MacOS Systems.') |
1074 | | - if options.node_use_large_pages and flavor in ('linux', 'freebsd', 'mac'): |
1075 | | - if options.shared or options.enable_static: |
1076 | | - raise Exception( |
1077 | | - 'Large pages are supported only while creating node executable.') |
1078 | | - if target_arch!="x64": |
1079 | | - raise Exception( |
1080 | | - 'Large pages are supported only x64 platform.') |
1081 | | - if flavor == 'mac': |
1082 | | - info('macOS server with 32GB or more is recommended') |
1083 | | - if flavor == 'linux': |
1084 | | - # Example full version string: 2.6.32-696.28.1.el6.x86_64 |
1085 | | - FULL_KERNEL_VERSION=os.uname()[2] |
1086 | | - KERNEL_VERSION=FULL_KERNEL_VERSION.split('-')[0] |
1087 | | - if KERNEL_VERSION < "2.6.38" and flavor == 'linux': |
1088 | | - raise Exception( |
1089 | | - 'Large pages need Linux kernel version >= 2.6.38') |
1090 | | - o['variables']['node_use_large_pages'] = b(options.node_use_large_pages) |
1091 | | - o['variables']['node_use_large_pages_script_lld'] = b(options.node_use_large_pages_script_lld) |
1092 | | - |
1093 | 1060 | if options.no_ifaddrs: |
1094 | 1061 | o['defines'] += ['SUNOS_NO_IFADDRS'] |
1095 | 1062 |
|
|
0 commit comments