mirror of https://github.com/nodejs/node.git
build: add --without-isolates configure switch
parent
2a7a2ca986
commit
39e2c469db
|
@ -27,6 +27,11 @@ parser.add_option("--without-npm",
|
||||||
dest="without_npm",
|
dest="without_npm",
|
||||||
help="Don\'t install the bundled npm package manager")
|
help="Don\'t install the bundled npm package manager")
|
||||||
|
|
||||||
|
parser.add_option("--without-isolates",
|
||||||
|
action="store_true",
|
||||||
|
dest="without_isolates",
|
||||||
|
help="Build without isolates (no threads, single loop) [Default: False]")
|
||||||
|
|
||||||
parser.add_option("--without-ssl",
|
parser.add_option("--without-ssl",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
dest="without_ssl",
|
dest="without_ssl",
|
||||||
|
@ -163,6 +168,7 @@ def target_arch():
|
||||||
|
|
||||||
def configure_node(o):
|
def configure_node(o):
|
||||||
# TODO add gdb and dest_cpu
|
# TODO add gdb and dest_cpu
|
||||||
|
o['variables']['node_use_isolates'] = b(not options.without_isolates)
|
||||||
o['variables']['node_debug'] = b(options.debug)
|
o['variables']['node_debug'] = b(options.debug)
|
||||||
o['variables']['node_prefix'] = options.prefix if options.prefix else ''
|
o['variables']['node_prefix'] = options.prefix if options.prefix else ''
|
||||||
o['variables']['node_use_dtrace'] = b(options.with_dtrace)
|
o['variables']['node_use_dtrace'] = b(options.with_dtrace)
|
||||||
|
|
6
node.gyp
6
node.gyp
|
@ -130,6 +130,12 @@
|
||||||
],
|
],
|
||||||
|
|
||||||
'conditions': [
|
'conditions': [
|
||||||
|
[ 'node_use_isolates=="true"', {
|
||||||
|
'defines': [ 'HAVE_ISOLATES=1' ],
|
||||||
|
}, {
|
||||||
|
'defines': [ 'HAVE_ISOLATES=0' ],
|
||||||
|
}],
|
||||||
|
|
||||||
[ 'node_use_openssl=="true"', {
|
[ 'node_use_openssl=="true"', {
|
||||||
'defines': [ 'HAVE_OPENSSL=1' ],
|
'defines': [ 'HAVE_OPENSSL=1' ],
|
||||||
'sources': [ 'src/node_crypto.cc' ],
|
'sources': [ 'src/node_crypto.cc' ],
|
||||||
|
|
Loading…
Reference in New Issue