build: add --without-isolates configure switch

v0.7.4-release
Ben Noordhuis 2011-11-29 16:41:41 +01:00
parent 66116924ed
commit b3d4938e3e
2 changed files with 12 additions and 0 deletions

6
configure vendored
View File

@ -27,6 +27,11 @@ parser.add_option("--without-npm",
dest="without_npm",
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",
action="store_true",
dest="without_ssl",
@ -163,6 +168,7 @@ def target_arch():
def configure_node(o):
# 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_prefix'] = options.prefix if options.prefix else ''
o['variables']['node_use_dtrace'] = b(options.with_dtrace)

View File

@ -130,6 +130,12 @@
],
'conditions': [
[ 'node_use_isolates=="true"', {
'defines': [ 'HAVE_ISOLATES=1' ],
}, {
'defines': [ 'HAVE_ISOLATES=0' ],
}],
[ 'node_use_openssl=="true"', {
'defines': [ 'HAVE_OPENSSL=1' ],
'sources': [ 'src/node_crypto.cc' ],