Skip to content

Commit 4bfd799

Browse files
committed
Add isolate configure option
1 parent 4dde692 commit 4bfd799

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

configure

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ parser.add_option("--with-dtrace",
8989
dest="with_dtrace",
9090
help="Build with DTrace (experimental)")
9191

92+
parser.add_option("--isolate",
93+
action="store_true",
94+
dest="isolate",
95+
help="Build with Isolate support")
96+
9297
# CHECKME does this still work with recent releases of V8?
9398
parser.add_option("--gdb",
9499
action="store_true",
@@ -151,6 +156,7 @@ def configure_node(o):
151156
o['variables']['node_use_dtrace'] = 'true' if options.with_dtrace else 'false'
152157
o['variables']['host_arch'] = host_arch()
153158
o['variables']['target_arch'] = target_arch()
159+
o['variables']['node_isolate'] = 'true' if options.isolate else 'false'
154160

155161
# TODO move to node.gyp
156162
if sys.platform == 'sunos5':

node.gyp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
'node_use_dtrace': 'false',
99
'node_use_openssl%': 'true',
1010
'node_use_system_openssl%': 'false',
11+
'node_isolate': 'true',
1112
'library_files': [
1213
'src/node.js',
1314
'lib/_debugger.js',
@@ -138,6 +139,13 @@
138139
}, {
139140
'defines': [ 'HAVE_OPENSSL=0' ]
140141
}],
142+
143+
[ 'node_isolate=="true"', {
144+
'defines': [
145+
'NODE_FORK_ISOLATE',
146+
'NODE_LIBRARY'
147+
],
148+
}],
141149

142150
[ 'node_use_dtrace=="true"', {
143151
'sources': [

0 commit comments

Comments
 (0)