Permalink
Browse files

Add isolate configure option

  • Loading branch information...
paddybyers committed Nov 22, 2011
1 parent 4dde692 commit 4bfd79943ee8b78ecec36bccd0fffda19f2252fd
Showing with 14 additions and 0 deletions.
  1. +6 −0 configure
  2. +8 −0 node.gyp
View
@@ -89,6 +89,11 @@ parser.add_option("--with-dtrace",
dest="with_dtrace",
help="Build with DTrace (experimental)")
+parser.add_option("--isolate",
+ action="store_true",
+ dest="isolate",
+ help="Build with Isolate support")
+
# CHECKME does this still work with recent releases of V8?
parser.add_option("--gdb",
action="store_true",
@@ -151,6 +156,7 @@ def configure_node(o):
o['variables']['node_use_dtrace'] = 'true' if options.with_dtrace else 'false'
o['variables']['host_arch'] = host_arch()
o['variables']['target_arch'] = target_arch()
+ o['variables']['node_isolate'] = 'true' if options.isolate else 'false'
# TODO move to node.gyp
if sys.platform == 'sunos5':
View
@@ -8,6 +8,7 @@
'node_use_dtrace': 'false',
'node_use_openssl%': 'true',
'node_use_system_openssl%': 'false',
+ 'node_isolate': 'true',
'library_files': [
'src/node.js',
'lib/_debugger.js',
@@ -138,6 +139,13 @@
}, {
'defines': [ 'HAVE_OPENSSL=0' ]
}],
+
+ [ 'node_isolate=="true"', {
+ 'defines': [
+ 'NODE_FORK_ISOLATE',
+ 'NODE_LIBRARY'
+ ],
+ }],
[ 'node_use_dtrace=="true"', {
'sources': [

0 comments on commit 4bfd799

Please sign in to comment.