From b3d4938e3e04394f672f8f15feb779b231424bb6 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 29 Nov 2011 16:41:41 +0100 Subject: [PATCH] build: add --without-isolates configure switch --- configure | 6 ++++++ node.gyp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/configure b/configure index dbe7f24..401b370 100755 --- a/configure +++ b/configure @@ -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) diff --git a/node.gyp b/node.gyp index 0fff5b4..9de3492 100644 --- a/node.gyp +++ b/node.gyp @@ -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' ], -- 2.7.4